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

Unified Diff: content/test/browser_test_base.cc

Issue 10820007: Move all the layout tests that ran under browser_tests to run under content_browsertests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 5 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: content/test/browser_test_base.cc
===================================================================
--- content/test/browser_test_base.cc (revision 148205)
+++ content/test/browser_test_base.cc (working copy)
@@ -33,6 +33,8 @@
// The tests assume that file:// URIs can freely access other file:// URIs.
command_line->AppendSwitch(switches::kAllowFileAccessFromFiles);
+ command_line->AppendSwitch(switches::kDomAutomationController);
+
content::MainFunctionParams params(*command_line);
params.ui_task =
new base::Closure(
@@ -49,3 +51,11 @@
void BrowserTestBase::ProxyRunTestOnMainThreadLoop() {
RunTestOnMainThreadLoop();
}
+
+void BrowserTestBase::CreateTestServer(const char* test_server_base) {
+ CHECK(!test_server_.get());
+ test_server_.reset(new net::TestServer(
+ net::TestServer::TYPE_HTTP,
+ net::TestServer::kLocalhost,
+ FilePath().AppendASCII(test_server_base)));
+}

Powered by Google App Engine
This is Rietveld 408576698