OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/ui/panels/old_base_panel_browser_test.h" | 5 #include "chrome/browser/ui/panels/old_base_panel_browser_test.h" |
6 | 6 |
7 #include "chrome/browser/ui/browser_list.h" | 7 #include "chrome/browser/ui/browser_list.h" |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 | 213 |
214 bool OldBasePanelBrowserTest::SkipTestIfCompizWM() { | 214 bool OldBasePanelBrowserTest::SkipTestIfCompizWM() { |
215 #if defined(OS_LINUX) | 215 #if defined(OS_LINUX) |
216 return ui::GuessWindowManager() == ui::WM_COMPIZ; | 216 return ui::GuessWindowManager() == ui::WM_COMPIZ; |
217 #else | 217 #else |
218 return false; | 218 return false; |
219 #endif | 219 #endif |
220 } | 220 } |
221 | 221 |
222 void OldBasePanelBrowserTest::SetUpCommandLine(CommandLine* command_line) { | 222 void OldBasePanelBrowserTest::SetUpCommandLine(CommandLine* command_line) { |
223 EnableDOMAutomation(); | |
224 command_line->AppendSwitch(switches::kEnablePanels); | 223 command_line->AppendSwitch(switches::kEnablePanels); |
225 } | 224 } |
226 | 225 |
227 void OldBasePanelBrowserTest::SetUpOnMainThread() { | 226 void OldBasePanelBrowserTest::SetUpOnMainThread() { |
228 InProcessBrowserTest::SetUpOnMainThread(); | 227 InProcessBrowserTest::SetUpOnMainThread(); |
229 | 228 |
230 // Setup the work area and desktop bar so that we have consistent testing | 229 // Setup the work area and desktop bar so that we have consistent testing |
231 // environment for all panel related tests. | 230 // environment for all panel related tests. |
232 PanelManager* panel_manager = PanelManager::GetInstance(); | 231 PanelManager* panel_manager = PanelManager::GetInstance(); |
233 if (mock_display_settings_enabled_) { | 232 if (mock_display_settings_enabled_) { |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 } | 478 } |
480 | 479 |
481 void OldBasePanelBrowserTest::MoveMouse(const gfx::Point& position) { | 480 void OldBasePanelBrowserTest::MoveMouse(const gfx::Point& position) { |
482 PanelManager::GetInstance()->mouse_watcher()->NotifyMouseMovement(position); | 481 PanelManager::GetInstance()->mouse_watcher()->NotifyMouseMovement(position); |
483 } | 482 } |
484 | 483 |
485 std::string OldBasePanelBrowserTest::MakePanelName(int index) { | 484 std::string OldBasePanelBrowserTest::MakePanelName(int index) { |
486 std::string panel_name("Panel"); | 485 std::string panel_name("Panel"); |
487 return panel_name + base::IntToString(index); | 486 return panel_name + base::IntToString(index); |
488 } | 487 } |
OLD | NEW |