Index: test/ConsoleJsObject.cpp |
diff --git a/test/ConsoleJsObject.cpp b/test/ConsoleJsObject.cpp |
index 9405a01514c19343e7269076239a54c3a4f85e09..c3aae06e4803f8464f2886040988610a6d5f3237 100644 |
--- a/test/ConsoleJsObject.cpp |
+++ b/test/ConsoleJsObject.cpp |
@@ -35,18 +35,16 @@ namespace |
} |
}; |
- typedef std::shared_ptr<MockLogSystem> MockLogSystemPtr; |
- |
class ConsoleJsObjectTest : public BaseJsTest |
{ |
protected: |
- MockLogSystemPtr mockLogSystem; |
+ MockLogSystem* mockLogSystem; |
void SetUp() |
{ |
- BaseJsTest::SetUp(); |
- mockLogSystem = MockLogSystemPtr(new MockLogSystem); |
- jsEngine->SetLogSystem(mockLogSystem); |
+ JsEngineCreationParameters jsEngineParams; |
+ jsEngineParams.logSystem.reset(mockLogSystem = new MockLogSystem()); |
+ jsEngine = CreateJsEngine(std::move(jsEngineParams)); |
} |
}; |
} |