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

Unified Diff: chrome/test/in_process_browser_test.h

Issue 62145: Yet another scrape atttempt (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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
Index: chrome/test/in_process_browser_test.h
===================================================================
--- chrome/test/in_process_browser_test.h (revision 13436)
+++ chrome/test/in_process_browser_test.h (working copy)
@@ -12,6 +12,9 @@
class Browser;
class Profile;
+namespace net {
+class RuleBasedHostMapper;
+}
// Base class for tests wanting to bring up a browser in the unit test process.
// Writing tests with InProcessBrowserTest is slightly different than that of
@@ -64,6 +67,11 @@
// Override this rather than TestBody.
virtual void RunTestOnMainThread() = 0;
+ // Allows subclasses to configure the host mapper. By default this blocks
+ // requests to google.com as Chrome pings that on startup and we don't want to
+ // do that during testing.
+ virtual void ConfigureHostMapper(net::RuleBasedHostMapper* host_mapper);
+
// Starts an HTTP server.
HTTPTestServer* StartHTTPServer();
« no previous file with comments | « chrome/test/data/template_url_scraper/submit_handler/index.html ('k') | chrome/test/in_process_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698