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

Side by Side Diff: content/browser/renderer_host/render_view_host_browsertest.cc

Issue 7622012: Removal of Profile from content part 8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
10 #include "chrome/test/base/in_process_browser_test.h" 9 #include "chrome/test/base/in_process_browser_test.h"
11 #include "chrome/test/base/ui_test_utils.h" 10 #include "chrome/test/base/ui_test_utils.h"
12 #include "content/browser/renderer_host/render_view_host.h" 11 #include "content/browser/renderer_host/render_view_host.h"
13 #include "content/browser/tab_contents/tab_contents.h" 12 #include "content/browser/tab_contents/tab_contents.h"
14 #include "content/browser/tab_contents/tab_contents_observer.h" 13 #include "content/browser/tab_contents/tab_contents_observer.h"
15 #include "content/common/view_messages.h" 14 #include "content/common/view_messages.h"
16 #include "net/base/host_port_pair.h" 15 #include "net/base/host_port_pair.h"
17 #include "net/test/test_server.h" 16 #include "net/test/test_server.h"
18 17
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 RenderViewHostTestTabContentsObserver observer( 237 RenderViewHostTestTabContentsObserver observer(
239 browser()->GetSelectedTabContents()); 238 browser()->GetSelectedTabContents());
240 239
241 GURL test_url = test_server()->GetURL("files/simple.html"); 240 GURL test_url = test_server()->GetURL("files/simple.html");
242 ui_test_utils::NavigateToURL(browser(), test_url); 241 ui_test_utils::NavigateToURL(browser(), test_url);
243 242
244 EXPECT_EQ(test_server()->host_port_pair().ToString(), 243 EXPECT_EQ(test_server()->host_port_pair().ToString(),
245 observer.observed_socket_address().ToString()); 244 observer.observed_socket_address().ToString());
246 EXPECT_EQ(1, observer.navigation_count()); 245 EXPECT_EQ(1, observer.navigation_count());
247 } 246 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698