Index: test/Prefs.cpp |
=================================================================== |
--- a/test/Prefs.cpp |
+++ b/test/Prefs.cpp |
@@ -32,7 +32,7 @@ |
std::shared_ptr<std::istream> Read(const std::string& path) const |
{ |
if (path == "prefs.json" && !prefsContents.empty()) |
- return std::shared_ptr<std::istream>(new std::istringstream(prefsContents)); |
+ return std::make_shared<std::istringstream>(prefsContents); |
return LazyFileSystem::Read(path); |
} |
@@ -115,8 +115,8 @@ |
{ |
filterEngine.reset(); |
ToInternal(jsEngine)->WaitForQuietScheduler(); |
+ EXPECT_EQ(1, jsEngine.use_count()); |
jsEngine.reset(); |
- EXPECT_EQ(0, jsEngine.use_count()); |
} |
}; |
} |