Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Unified Diff: net/test/local_test_server.h

Issue 10986042: Fix the failed cases in URLFetcherFileTest on Android. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: refine the patch with nits fixed Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/pylib/single_test_runner.py ('k') | net/test/remote_test_server.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/local_test_server.h
diff --git a/net/test/local_test_server.h b/net/test/local_test_server.h
index 26636687ccc34718344caa5f58d4d5ba231e7d2a..d8d070eb9c2675715a506bbed142a5fdbc1730e8 100644
--- a/net/test/local_test_server.h
+++ b/net/test/local_test_server.h
@@ -53,6 +53,10 @@ class LocalTestServer : public BaseTestServer {
// |command_line|. Returns true on success.
virtual bool AddCommandLineArguments(CommandLine* command_line) const;
+ // Returns the actual path of document root for test cases. This function
+ // should be called by test cases to retrieve the actual document root path.
+ FilePath GetDocumentRoot() const { return document_root(); };
+
private:
bool Init(const FilePath& document_root);
« no previous file with comments | « build/android/pylib/single_test_runner.py ('k') | net/test/remote_test_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698