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

Side by Side Diff: content/browser/renderer_host/render_view_host_manager_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/file_util.h" 5 #include "base/file_util.h"
6 #include "base/memory/ref_counted.h" 6 #include "base/memory/ref_counted.h"
7 #include "base/path_service.h" 7 #include "base/path_service.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/site_instance.h" 11 #include "content/browser/site_instance.h"
13 #include "content/browser/tab_contents/tab_contents.h" 12 #include "content/browser/tab_contents/tab_contents.h"
14 #include "content/common/content_notification_types.h" 13 #include "content/common/content_notification_types.h"
15 #include "content/common/notification_details.h" 14 #include "content/common/notification_details.h"
16 #include "content/common/notification_observer.h" 15 #include "content/common/notification_observer.h"
17 #include "content/common/notification_registrar.h" 16 #include "content/common/notification_registrar.h"
18 #include "net/base/net_util.h" 17 #include "net/base/net_util.h"
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 EXPECT_EQ(1, browser()->tab_count()); 239 EXPECT_EQ(1, browser()->tab_count());
241 EXPECT_EQ(0, browser()->active_index()); 240 EXPECT_EQ(0, browser()->active_index());
242 EXPECT_EQ("/files/title2.html", 241 EXPECT_EQ("/files/title2.html",
243 browser()->GetSelectedTabContents()->GetURL().path()); 242 browser()->GetSelectedTabContents()->GetURL().path());
244 243
245 // Should have the same SiteInstance. 244 // Should have the same SiteInstance.
246 scoped_refptr<SiteInstance> noref_site_instance( 245 scoped_refptr<SiteInstance> noref_site_instance(
247 browser()->GetSelectedTabContents()->GetSiteInstance()); 246 browser()->GetSelectedTabContents()->GetSiteInstance());
248 EXPECT_EQ(orig_site_instance, noref_site_instance); 247 EXPECT_EQ(orig_site_instance, noref_site_instance);
249 } 248 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_browsertest.cc ('k') | content/common/content_notification_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698