| OLD | NEW |
| 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/download/download_manager.h" | 8 #include "chrome/browser/download/download_manager.h" |
| 9 #include "chrome/browser/extensions/extension_error_reporter.h" | |
| 10 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
| 12 #include "chrome/common/chrome_paths.h" | 11 #include "chrome/common/chrome_paths.h" |
| 13 #include "chrome/test/in_process_browser_test.h" | 12 #include "chrome/test/in_process_browser_test.h" |
| 14 #include "chrome/test/ui_test_utils.h" | 13 #include "chrome/test/ui_test_utils.h" |
| 15 #include "content/browser/site_instance.h" | 14 #include "content/browser/site_instance.h" |
| 16 #include "content/browser/tab_contents/tab_contents.h" | 15 #include "content/browser/tab_contents/tab_contents.h" |
| 17 #include "content/common/notification_details.h" | 16 #include "content/common/notification_details.h" |
| 18 #include "content/common/notification_observer.h" | 17 #include "content/common/notification_observer.h" |
| 19 #include "content/common/notification_registrar.h" | 18 #include "content/common/notification_registrar.h" |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 EXPECT_EQ(1, browser()->tab_count()); | 332 EXPECT_EQ(1, browser()->tab_count()); |
| 334 EXPECT_EQ(0, browser()->selected_index()); | 333 EXPECT_EQ(0, browser()->selected_index()); |
| 335 EXPECT_EQ("/files/title2.html", | 334 EXPECT_EQ("/files/title2.html", |
| 336 browser()->GetSelectedTabContents()->GetURL().path()); | 335 browser()->GetSelectedTabContents()->GetURL().path()); |
| 337 | 336 |
| 338 // Should have the same SiteInstance. | 337 // Should have the same SiteInstance. |
| 339 scoped_refptr<SiteInstance> noref_site_instance( | 338 scoped_refptr<SiteInstance> noref_site_instance( |
| 340 browser()->GetSelectedTabContents()->GetSiteInstance()); | 339 browser()->GetSelectedTabContents()->GetSiteInstance()); |
| 341 EXPECT_EQ(orig_site_instance, noref_site_instance); | 340 EXPECT_EQ(orig_site_instance, noref_site_instance); |
| 342 } | 341 } |
| OLD | NEW |