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

Unified Diff: test/DefaultFileSystem.cpp

Issue 29535600: Issue 5617 - Provide with async executor bound to Platform in the future (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created Sept. 4, 2017, 12:03 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/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);
});

Powered by Google App Engine
This is Rietveld