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

Side by Side Diff: content/browser/renderer_host/render_view_host_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/time.h" 5 #include "base/time.h"
6 #include "base/utf_string_conversions.h" 6 #include "base/utf_string_conversions.h"
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "content/browser/renderer_host/render_view_host_impl.h" 8 #include "content/browser/renderer_host/render_view_host_impl.h"
9 #include "content/browser/web_contents/web_contents_impl.h" 9 #include "content/browser/web_contents/web_contents_impl.h"
10 #include "content/common/view_messages.h" 10 #include "content/common/view_messages.h"
11 #include "content/public/browser/notification_types.h" 11 #include "content/public/browser/notification_types.h"
12 #include "content/public/browser/web_contents_observer.h" 12 #include "content/public/browser/web_contents_observer.h"
13 #include "content/public/test/browser_test_utils.h" 13 #include "content/public/test/browser_test_utils.h"
14 #include "content/shell/shell.h" 14 #include "content/shell/shell.h"
15 #include "content/test/content_browser_test.h" 15 #include "content/test/content_browser_test.h"
16 #include "content/test/content_browser_test_utils.h" 16 #include "content/test/content_browser_test_utils.h"
17 #include "net/base/host_port_pair.h" 17 #include "net/base/host_port_pair.h"
18 #include "net/base/net_util.h" 18 #include "net/base/net_util.h"
19 #include "net/test/spawned_test_server.h" 19 #include "net/test/spawned_test_server/spawned_test_server.h"
20 20
21 namespace content { 21 namespace content {
22 22
23 class RenderViewHostTest : public ContentBrowserTest { 23 class RenderViewHostTest : public ContentBrowserTest {
24 public: 24 public:
25 RenderViewHostTest() {} 25 RenderViewHostTest() {}
26 }; 26 };
27 27
28 class RenderViewHostTestWebContentsObserver : public WebContentsObserver { 28 class RenderViewHostTestWebContentsObserver : public WebContentsObserver {
29 public: 29 public:
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 EXPECT_EQ(1, observer.navigation_count()); 81 EXPECT_EQ(1, observer.navigation_count());
82 82
83 // But should be set to the original page when reading MHTML. 83 // But should be set to the original page when reading MHTML.
84 test_url = net::FilePathToFileURL(test_server()->document_root().Append( 84 test_url = net::FilePathToFileURL(test_server()->document_root().Append(
85 FILE_PATH_LITERAL("google.mht"))); 85 FILE_PATH_LITERAL("google.mht")));
86 NavigateToURL(shell(), test_url); 86 NavigateToURL(shell(), test_url);
87 EXPECT_EQ("http://www.google.com/", observer.base_url().spec()); 87 EXPECT_EQ("http://www.google.com/", observer.base_url().spec());
88 } 88 }
89 89
90 } // namespace content 90 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698