| Index: test/Notification.cpp |
| diff --git a/test/Notification.cpp b/test/Notification.cpp |
| index b5f487080ad409d5b0da8ca268c804ec958710a3..8217cf7297ea76808dc793675b4527e84dbec8aa 100644 |
| --- a/test/Notification.cpp |
| +++ b/test/Notification.cpp |
| @@ -30,17 +30,17 @@ namespace |
| class NotificationTest : public ::testing::Test |
| { |
| protected: |
| + std::unique_ptr<Platform> platform; |
| FilterEnginePtr filterEngine; |
| void SetUp() |
| { |
| LazyFileSystem* fileSystem; |
| - JsEngineCreationParameters jsEngineParams; |
| - jsEngineParams.fileSystem.reset(fileSystem = new LazyFileSystem()); |
| - jsEngineParams.logSystem.reset(new DefaultLogSystem()); |
| - jsEngineParams.timer.reset(new NoopTimer()); |
| - jsEngineParams.webRequest.reset(new NoopWebRequest()); |
| - auto jsEngine = CreateJsEngine(std::move(jsEngineParams)); |
| - filterEngine = CreateFilterEngine(*fileSystem, jsEngine); |
| + ThrowingPlatformCreationParameters platformParams; |
| + platformParams.timer.reset(new NoopTimer()); |
| + platformParams.fileSystem.reset(fileSystem = new LazyFileSystem()); |
| + platformParams.webRequest.reset(new NoopWebRequest()); |
| + platform.reset(new Platform(std::move(platformParams))); |
| + filterEngine = CreateFilterEngine(*fileSystem, platform->GetJsEngine()); |
| } |
| void AddNotification(const std::string& notification) |