Index: test/Notification.cpp |
diff --git a/test/Notification.cpp b/test/Notification.cpp |
index 376ea08147e5547b6fc52f5182c5a911db2e8e05..b5f487080ad409d5b0da8ca268c804ec958710a3 100644 |
--- a/test/Notification.cpp |
+++ b/test/Notification.cpp |
@@ -33,13 +33,14 @@ namespace |
FilterEnginePtr filterEngine; |
void SetUp() |
{ |
+ LazyFileSystem* fileSystem; |
JsEngineCreationParameters jsEngineParams; |
- jsEngineParams.fileSystem.reset(new LazyFileSystem()); |
+ 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 = FilterEngine::Create(jsEngine); |
+ filterEngine = CreateFilterEngine(*fileSystem, jsEngine); |
} |
void AddNotification(const std::string& notification) |