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

Unified Diff: test/ConsoleJsObject.cpp

Issue 29500602: Issue 5450 - introduce the Platform class (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created July 28, 2017, 12:40 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/ConsoleJsObject.cpp
diff --git a/test/ConsoleJsObject.cpp b/test/ConsoleJsObject.cpp
index c3aae06e4803f8464f2886040988610a6d5f3237..cd54c4c78d1ab27037b994da85270bfcb76ca0d9 100644
--- a/test/ConsoleJsObject.cpp
+++ b/test/ConsoleJsObject.cpp
@@ -17,6 +17,8 @@
#include "BaseJsTest.h"
+using namespace AdblockPlus;
+
namespace
{
class MockLogSystem : public AdblockPlus::LogSystem
@@ -35,16 +37,19 @@ namespace
}
};
- class ConsoleJsObjectTest : public BaseJsTest
+ class ConsoleJsObjectTest : public ::testing::Test
{
protected:
+ std::unique_ptr<Platform> platform;
MockLogSystem* mockLogSystem;
+ JsEnginePtr jsEngine;
- void SetUp()
+ void SetUp() override
{
- JsEngineCreationParameters jsEngineParams;
- jsEngineParams.logSystem.reset(mockLogSystem = new MockLogSystem());
- jsEngine = CreateJsEngine(std::move(jsEngineParams));
+ ThrowingPlatformCreationParameters platformParams;
+ platformParams.logSystem.reset(mockLogSystem = new MockLogSystem());
+ platform.reset(new Platform(std::move(platformParams)));
+ jsEngine = platform->GetJsEngine();
}
};
}

Powered by Google App Engine
This is Rietveld