Index: test/BaseJsTest.cpp |
diff --git a/test/BaseJsTest.cpp b/test/BaseJsTest.cpp |
index 4239e4c2d33fadc9294758ce8fff23d32f544792..53c80a0c649847534cba510087d29f69ab7e7c00 100644 |
--- a/test/BaseJsTest.cpp |
+++ b/test/BaseJsTest.cpp |
@@ -33,7 +33,7 @@ void DelayedTimer::ProcessImmediateTimers(DelayedTimer::SharedTasks& timerTasks) |
} |
JsEngineCreationParameters::JsEngineCreationParameters() |
- : logSystem(std::make_shared<ThrowingLogSystem>()) |
+ : logSystem(new ThrowingLogSystem()) |
, timer(new ThrowingTimer()) |
, webRequest(new ThrowingWebRequest()) |
, fileSystem(std::make_shared<ThrowingFileSystem>()) |
@@ -45,7 +45,7 @@ AdblockPlus::JsEnginePtr CreateJsEngine(JsEngineCreationParameters&& jsEngineCre |
auto jsEngine = AdblockPlus::JsEngine::New(jsEngineCreationParameters.appInfo, |
std::move(jsEngineCreationParameters.timer), |
std::move(jsEngineCreationParameters.fileSystem), |
- std::move(jsEngineCreationParameters.webRequest)); |
- jsEngine->SetLogSystem(std::move(jsEngineCreationParameters.logSystem)); |
+ std::move(jsEngineCreationParameters.webRequest), |
+ std::move(jsEngineCreationParameters.logSystem)); |
return jsEngine; |
} |