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))); |
} |
}; |