Index: test/ConsoleJsObject.cpp |
=================================================================== |
--- a/test/ConsoleJsObject.cpp |
+++ b/test/ConsoleJsObject.cpp |
@@ -45,9 +45,15 @@ |
void SetUp() |
{ |
BaseJsTest::SetUp(); |
- mockLogSystem = MockLogSystemPtr(new MockLogSystem); |
+ mockLogSystem = std::make_shared<MockLogSystem>(); |
jsEngine->SetLogSystem(mockLogSystem); |
} |
+ |
+ void TearDown() |
+ { |
+ mockLogSystem.reset(); |
+ BaseJsTest::TearDown(); |
+ } |
}; |
} |