Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: test/FileSystemJsObject.cpp

Issue 29535572: Issue 5183 - make FileSystemPtr std::unique_ptr (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created Sept. 4, 2017, 9:59 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/BaseJsTest.cpp ('k') | test/Prefs.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/FileSystemJsObject.cpp
diff --git a/test/FileSystemJsObject.cpp b/test/FileSystemJsObject.cpp
index f08493022d539f169cec472c10eb235fade4e8c2..53a554de17841f5c3aba2c56f37f4cae55308f77 100644
--- a/test/FileSystemJsObject.cpp
+++ b/test/FileSystemJsObject.cpp
@@ -113,18 +113,15 @@ namespace
error = jsEngine.Evaluate("result.error").AsString();
}
- typedef std::shared_ptr<MockFileSystem> MockFileSystemPtr;
-
class FileSystemJsObjectTest : public BaseJsTest
{
protected:
- MockFileSystemPtr mockFileSystem;
+ MockFileSystem* mockFileSystem;
void SetUp()
{
- mockFileSystem = MockFileSystemPtr(new MockFileSystem());
ThrowingPlatformCreationParameters params;
- params.fileSystem = mockFileSystem;
+ params.fileSystem.reset(mockFileSystem = new MockFileSystem());
platform.reset(new AdblockPlus::Platform(std::move(params)));
}
};
« no previous file with comments | « test/BaseJsTest.cpp ('k') | test/Prefs.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld