Index: test/FilterEngine.cpp |
=================================================================== |
--- a/test/FilterEngine.cpp |
+++ b/test/FilterEngine.cpp |
@@ -7,19 +7,19 @@ namespace |
class FilterEngineTest : public BaseJsTest |
{ |
protected: |
FilterEnginePtr filterEngine; |
void SetUp() |
{ |
BaseJsTest::SetUp(); |
- // TODO: Don't use the default ErrorCallback/WebRequest |
+ jsEngine->SetFileSystem(AdblockPlus::FileSystemPtr(new LazyFileSystem)); |
+ jsEngine->SetWebRequest(AdblockPlus::WebRequestPtr(new LazyWebRequest)); |
jsEngine->SetErrorCallback(AdblockPlus::ErrorCallbackPtr(new AdblockPlus::DefaultErrorCallback)); |
- jsEngine->SetWebRequest(AdblockPlus::WebRequestPtr(new AdblockPlus::DefaultWebRequest)); |
filterEngine = FilterEnginePtr(new AdblockPlus::FilterEngine(jsEngine)); |
} |
}; |
} |
TEST_F(FilterEngineTest, FilterCreation) |
{ |
AdblockPlus::FilterPtr filter1 = filterEngine->GetFilter("foo"); |