Index: test/UpdateCheck.cpp |
diff --git a/test/UpdateCheck.cpp b/test/UpdateCheck.cpp |
index 0fb2924715bc9a6e4cab320d833df3344c00c77d..b984daa4d5a4c229ae330eb0404af9c9235f9361 100644 |
--- a/test/UpdateCheck.cpp |
+++ b/test/UpdateCheck.cpp |
@@ -55,8 +55,9 @@ namespace |
{ |
JsEngineCreationParameters jsEngineParams; |
jsEngineParams.appInfo = appInfo; |
+ LazyFileSystem* fileSystem; |
jsEngineParams.logSystem.reset(new LazyLogSystem()); |
- jsEngineParams.fileSystem.reset(new LazyFileSystem()); |
+ jsEngineParams.fileSystem.reset(fileSystem = new LazyFileSystem()); |
jsEngineParams.timer = DelayedTimer::New(timerTasks); |
jsEngineParams.webRequest = DelayedWebRequest::New(webRequestTasks); |
auto jsEngine = CreateJsEngine(std::move(jsEngineParams)); |
@@ -66,7 +67,7 @@ namespace |
eventCallbackParams = std::move(params); |
}); |
- filterEngine = AdblockPlus::FilterEngine::Create(jsEngine); |
+ filterEngine = ::CreateFilterEngine(*fileSystem, jsEngine); |
} |
// Returns a URL or the empty string if there is no such request. |