Index: test/Prefs.cpp |
=================================================================== |
--- a/test/Prefs.cpp |
+++ b/test/Prefs.cpp |
@@ -135,27 +135,27 @@ |
ASSERT_EQ("filters.ini", filterEngine->GetPref("patternsfile").AsString()); |
ASSERT_EQ(48, filterEngine->GetPref("patternsbackupinterval").AsInt()); |
ASSERT_FALSE(filterEngine->GetPref("subscriptions_autoupdate").AsBool()); |
} |
} |
TEST_F(PrefsTest, UnknownPrefs) |
{ |
- using IOBuffer = AdblockPlus::FileSystem::IOBuffer; |
+ using IOBuffer = AdblockPlus::IFileSystem::IOBuffer; |
std::string content = "{\"foobar\":2, \"patternsbackupinterval\": 12}"; |
fileSystem->prefsContents = IOBuffer(content.cbegin(), content.cend()); |
auto filterEngine = CreateFilterEngine(); |
ASSERT_TRUE(filterEngine->GetPref("foobar").IsUndefined()); |
ASSERT_EQ(12, filterEngine->GetPref("patternsbackupinterval").AsInt()); |
} |
TEST_F(PrefsTest, SyntaxFailure) |
{ |
- using IOBuffer = AdblockPlus::FileSystem::IOBuffer; |
+ using IOBuffer = AdblockPlus::IFileSystem::IOBuffer; |
std::string content = "{\"patternsbackupinterval\": 6, \"foo\"}"; |
fileSystem->prefsContents = IOBuffer(content.cbegin(), content.cend()); |
auto filterEngine = CreateFilterEngine(); |
ASSERT_EQ(24, filterEngine->GetPref("patternsbackupinterval").AsInt()); |
} |
TEST_F(PrefsTest, PreconfiguredPrefsPreconfigured) |