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

Unified Diff: test/BaseJsTest.cpp

Issue 29498576: Issue 4832 - remove API allowing changing of LogSystem after Initialization of JsEngine (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created July 26, 2017, 2:43 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/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;
}

Powered by Google App Engine
This is Rietveld