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

Unified Diff: test/BaseJsTest.h

Issue 10369004: File system path resolving (Closed)
Patch Set: Comments addressed Created April 30, 2013, 8:09 a.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/BaseJsTest.h
===================================================================
--- a/test/BaseJsTest.h
+++ b/test/BaseJsTest.h
@@ -41,6 +41,17 @@
{
throw std::runtime_error("Not implemented");
}
+
+ std::string Resolve(const std::string& path) const
+ {
+ throw std::runtime_error("Not implemented");
+ }
+
+ void SetBasePath(const std::string& path)
+ {
+ throw std::runtime_error("Not implemented");
+ }
+
};
class ThrowingWebRequest : public AdblockPlus::WebRequest
@@ -85,6 +96,19 @@
AdblockPlus::Sleep(100000);
return StatResult();
}
+
+ std::string Resolve(const std::string& path) const
+ {
+ while (true)
+ AdblockPlus::Sleep(100000);
+ return std::string();
+ }
+
+ void SetBasePath(const std::string& path)
+ {
+ while (true)
+ AdblockPlus::Sleep(100000);
Wladimir Palant 2013/04/30 09:29:50 SetBasePath() isn't a function called from JS, no
+ }
};
class LazyWebRequest : public AdblockPlus::WebRequest

Powered by Google App Engine
This is Rietveld