OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/profile.h" | 6 #include "chrome/browser/profile.h" |
7 #include "chrome/browser/tab_contents/tab_contents.h" | 7 #include "chrome/browser/tab_contents/tab_contents.h" |
8 #include "chrome/browser/tab_contents/tab_contents_view.h" | 8 #include "chrome/browser/tab_contents/tab_contents_view.h" |
9 #include "chrome/browser/tab_contents_wrapper.h" | |
10 #include "chrome/browser/tabs/tab_strip_model.h" | 9 #include "chrome/browser/tabs/tab_strip_model.h" |
11 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
12 #include "chrome/browser/ui/browser_list.h" | 11 #include "chrome/browser/ui/browser_list.h" |
13 #include "chrome/browser/ui/browser_navigator.h" | 12 #include "chrome/browser/ui/browser_navigator.h" |
14 #include "chrome/browser/ui/browser_window.h" | 13 #include "chrome/browser/ui/browser_window.h" |
| 14 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
15 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
16 #include "chrome/test/in_process_browser_test.h" | 16 #include "chrome/test/in_process_browser_test.h" |
17 #include "chrome/test/ui_test_utils.h" | 17 #include "chrome/test/ui_test_utils.h" |
18 #include "ipc/ipc_message.h" | 18 #include "ipc/ipc_message.h" |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 class BrowserNavigatorTest : public InProcessBrowserTest, | 22 class BrowserNavigatorTest : public InProcessBrowserTest, |
23 public NotificationObserver { | 23 public NotificationObserver { |
24 protected: | 24 protected: |
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 // The middle tab should now be selected and navigated to the sub-page of the | 596 // The middle tab should now be selected and navigated to the sub-page of the |
597 // URL. | 597 // URL. |
598 EXPECT_EQ(browser(), p.browser); | 598 EXPECT_EQ(browser(), p.browser); |
599 EXPECT_EQ(3, browser()->tab_count()); | 599 EXPECT_EQ(3, browser()->tab_count()); |
600 EXPECT_EQ(1, browser()->selected_index()); | 600 EXPECT_EQ(1, browser()->selected_index()); |
601 EXPECT_EQ(GURL("chrome://settings/personal"), | 601 EXPECT_EQ(GURL("chrome://settings/personal"), |
602 browser()->GetSelectedTabContents()->GetURL()); | 602 browser()->GetSelectedTabContents()->GetURL()); |
603 } | 603 } |
604 | 604 |
605 } // namespace | 605 } // namespace |
OLD | NEW |