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

Side by Side Diff: chrome/browser/chrome_switches_browsertest.cc

Issue 14691006: Move SpawnedTestServer to its own subdirectory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort gyp Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/command_line.h" 5 #include "base/command_line.h"
6 #include "chrome/browser/ui/browser.h" 6 #include "chrome/browser/ui/browser.h"
7 #include "chrome/browser/ui/tabs/tab_strip_model.h" 7 #include "chrome/browser/ui/tabs/tab_strip_model.h"
8 #include "chrome/common/chrome_switches.h" 8 #include "chrome/common/chrome_switches.h"
9 #include "chrome/test/base/in_process_browser_test.h" 9 #include "chrome/test/base/in_process_browser_test.h"
10 #include "chrome/test/base/ui_test_utils.h" 10 #include "chrome/test/base/ui_test_utils.h"
11 #include "content/public/browser/web_contents.h" 11 #include "content/public/browser/web_contents.h"
12 #include "content/public/test/browser_test_utils.h" 12 #include "content/public/test/browser_test_utils.h"
13 #include "net/test/spawned_test_server.h" 13 #include "net/test/spawned_test_server/spawned_test_server.h"
14 14
15 class HostRulesTest : public InProcessBrowserTest { 15 class HostRulesTest : public InProcessBrowserTest {
16 protected: 16 protected:
17 HostRulesTest() {} 17 HostRulesTest() {}
18 18
19 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { 19 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
20 ASSERT_TRUE(test_server()->Start()); 20 ASSERT_TRUE(test_server()->Start());
21 21
22 // Map all hosts to our local server. 22 // Map all hosts to our local server.
23 std::string host_rule( 23 std::string host_rule(
(...skipping 15 matching lines...) Expand all
39 ui_test_utils::NavigateToURL(browser(), test_url); 39 ui_test_utils::NavigateToURL(browser(), test_url);
40 40
41 std::string html; 41 std::string html;
42 EXPECT_TRUE(content::ExecuteScriptAndExtractString( 42 EXPECT_TRUE(content::ExecuteScriptAndExtractString(
43 browser()->tab_strip_model()->GetActiveWebContents(), 43 browser()->tab_strip_model()->GetActiveWebContents(),
44 "window.domAutomationController.send(document.body.outerHTML);", 44 "window.domAutomationController.send(document.body.outerHTML);",
45 &html)); 45 &html));
46 46
47 EXPECT_STREQ("<body></body>", html.c_str()); 47 EXPECT_STREQ("<body></body>", html.c_str());
48 } 48 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_keyevents_browsertest.cc ('k') | chrome/browser/collected_cookies_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698