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

Unified Diff: test/FileSystemJsObject.cpp

Issue 29500602: Issue 5450 - introduce the Platform class (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created July 28, 2017, 12:40 p.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
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();
}
};
}

Powered by Google App Engine
This is Rietveld