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

Unified Diff: test/BaseJsTest.h

Issue 10862008: Automatically add default filter subscription when necessary. (Closed)
Patch Set: Created May 27, 2013, 2:12 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
« no previous file with comments | « test/AppInfoJsObject.cpp ('k') | test/FilterEngine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/BaseJsTest.h
===================================================================
--- a/test/BaseJsTest.h
+++ b/test/BaseJsTest.h
@@ -123,16 +123,23 @@ class LazyWebRequest : public AdblockPlu
AdblockPlus::ServerResponse GET(const std::string& url, const AdblockPlus::HeaderList& requestHeaders) const
{
while (true)
AdblockPlus::Sleep(100000);
return AdblockPlus::ServerResponse();
}
};
+class LazyLogSystem : public AdblockPlus::LogSystem
+{
+ void operator()(LogLevel logLevel, const std::string& message,
+ const std::string& source)
+ {
+ }
+};
class BaseJsTest : public ::testing::Test
{
protected:
AdblockPlus::JsEnginePtr jsEngine;
virtual void SetUp()
{
« no previous file with comments | « test/AppInfoJsObject.cpp ('k') | test/FilterEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld