Index: test/FileSystemJsObject.cpp |
diff --git a/test/FileSystemJsObject.cpp b/test/FileSystemJsObject.cpp |
index d3238a36a9a687f4c34bf118f463b931de2bbe47..f92468f7400862f115e6049ad41d198726000dc1 100644 |
--- a/test/FileSystemJsObject.cpp |
+++ b/test/FileSystemJsObject.cpp |
@@ -128,13 +128,15 @@ namespace |
{ |
protected: |
MockFileSystemPtr mockFileSystem; |
+ AdblockPlus::JsEnginePtr jsEngine; |
void SetUp() |
{ |
- mockFileSystem = MockFileSystemPtr(new MockFileSystem); |
- JsEngineCreationParameters params; |
+ mockFileSystem = MockFileSystemPtr(new MockFileSystem()); |
+ ThrowingPlatformCreationParameters params; |
params.fileSystem = mockFileSystem; |
- jsEngine = CreateJsEngine(std::move(params)); |
+ platform.reset(new AdblockPlus::Platform(std::move(params))); |
+ jsEngine = platform->GetJsEngine(); |
} |
}; |
} |