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/command_line.h" | 5 #include "base/command_line.h" |
6 #include "chrome/browser/ui/browser.h" | 6 #include "chrome/browser/ui/browser.h" |
7 #include "chrome/browser/ui/browser_list.h" | 7 #include "chrome/browser/ui/browser_list.h" |
8 #include "chrome/browser/ui/browser_window.h" | 8 #include "chrome/browser/ui/browser_window.h" |
9 #include "chrome/common/chrome_switches.h" | 9 #include "chrome/common/chrome_switches.h" |
10 #include "chrome/test/base/in_process_browser_test.h" | 10 #include "chrome/test/base/in_process_browser_test.h" |
11 #include "chrome/test/base/ui_test_utils.h" | 11 #include "chrome/test/base/ui_test_utils.h" |
12 #include "content/browser/renderer_host/render_view_host.h" | 12 #include "content/browser/renderer_host/render_view_host.h" |
13 #include "content/public/browser/notification_service.h" | 13 #include "content/public/browser/notification_service.h" |
14 #include "content/public/browser/notification_types.h" | 14 #include "content/public/browser/notification_types.h" |
15 #include "third_party/cros_system_api/window_manager/chromeos_wm_ipc_enums.h" | 15 #include "third_party/cros_system_api/window_manager/chromeos_wm_ipc_enums.h" |
16 | 16 |
17 #if defined(TOOLKIT_USES_GTK) | 17 #if defined(TOOLKIT_USES_GTK) |
18 #include "chrome/browser/chromeos/wm_ipc.h" | 18 #include "chrome/browser/chromeos/legacy_window_manager/wm_ipc.h" |
19 #endif | 19 #endif |
20 | 20 |
21 namespace chromeos { | 21 namespace chromeos { |
22 | 22 |
23 class PanelTest : public InProcessBrowserTest { | 23 class PanelTest : public InProcessBrowserTest { |
24 public: | 24 public: |
25 PanelTest() { | 25 PanelTest() { |
26 EnableDOMAutomation(); | 26 EnableDOMAutomation(); |
27 } | 27 } |
28 | 28 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 if (*i != browser()) | 103 if (*i != browser()) |
104 new_browser = *i; | 104 new_browser = *i; |
105 } | 105 } |
106 EXPECT_FALSE(new_browser); | 106 EXPECT_FALSE(new_browser); |
107 | 107 |
108 // Should find a new tab. | 108 // Should find a new tab. |
109 EXPECT_EQ(old_tab_count + 1, browser()->tab_count()); | 109 EXPECT_EQ(old_tab_count + 1, browser()->tab_count()); |
110 } | 110 } |
111 | 111 |
112 } // namespace chromeos | 112 } // namespace chromeos |
OLD | NEW |