Index: test/DefaultFileSystem.cpp |
diff --git a/test/DefaultFileSystem.cpp b/test/DefaultFileSystem.cpp |
index f2510f9af9f762259ba3d617a375ab740a31f879..14bc16c22c99ee0bea78c0c5eb75ca2f9594b41d 100644 |
--- a/test/DefaultFileSystem.cpp |
+++ b/test/DefaultFileSystem.cpp |
@@ -18,23 +18,29 @@ |
#include <sstream> |
#include <AdblockPlus.h> |
#include <gtest/gtest.h> |
- |
+#include "../src/DefaultFileSystem.h" |
#include "BaseJsTest.h" |
using AdblockPlus::IFileSystem; |
using AdblockPlus::FileSystemPtr; |
using AdblockPlus::SchedulerTask; |
+using namespace AdblockPlus; |
namespace |
{ |
const std::string testFileName = "libadblockplus-t\xc3\xa4st-file"; |
+ FileSystemPtr CreateDefaultFileSystem(const Scheduler& scheduler) |
+ { |
+ return FileSystemPtr(new DefaultFileSystem(scheduler, std::unique_ptr<DefaultFileSystemSync>(new DefaultFileSystemSync("")))); |
+ } |
+ |
class DefaultFileSystemTest : public ::testing::Test |
{ |
public: |
void SetUp() override |
{ |
- fileSystem = AdblockPlus::CreateDefaultFileSystem([this](const SchedulerTask& task) |
+ fileSystem = CreateDefaultFileSystem([this](const SchedulerTask& task) |
{ |
fileSystemTasks.emplace_back(task); |
}); |