| 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/test/test_timeouts.h" | 5 #include "base/test/test_timeouts.h" |
| 6 #include "chrome/app/chrome_command_ids.h" | 6 #include "chrome/app/chrome_command_ids.h" |
| 7 #include "chrome/browser/ui/view_ids.h" | 7 #include "chrome/browser/ui/view_ids.h" |
| 8 #include "chrome/test/automated_ui_tests/automated_ui_test_base.h" | 8 #include "chrome/test/automated_ui_tests/automated_ui_test_base.h" |
| 9 #include "chrome/test/automation/browser_proxy.h" | 9 #include "chrome/test/automation/browser_proxy.h" |
| 10 #include "chrome/test/automation/tab_proxy.h" | 10 #include "chrome/test/automation/tab_proxy.h" |
| 11 #include "chrome/test/automation/window_proxy.h" | 11 #include "chrome/test/automation/window_proxy.h" |
| 12 #include "chrome/test/ui/ui_test.h" | 12 #include "chrome/test/ui/ui_test.h" |
| 13 #include "gfx/point.h" | 13 #include "ui/gfx/point.h" |
| 14 #include "gfx/rect.h" | 14 #include "ui/gfx/rect.h" |
| 15 #include "views/event.h" | 15 #include "views/event.h" |
| 16 | 16 |
| 17 AutomatedUITestBase::AutomatedUITestBase() {} | 17 AutomatedUITestBase::AutomatedUITestBase() {} |
| 18 | 18 |
| 19 AutomatedUITestBase::~AutomatedUITestBase() {} | 19 AutomatedUITestBase::~AutomatedUITestBase() {} |
| 20 | 20 |
| 21 void AutomatedUITestBase::LogErrorMessage(const std::string& error) { | 21 void AutomatedUITestBase::LogErrorMessage(const std::string& error) { |
| 22 } | 22 } |
| 23 | 23 |
| 24 void AutomatedUITestBase::LogWarningMessage(const std::string& warning) { | 24 void AutomatedUITestBase::LogWarningMessage(const std::string& warning) { |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 | 379 |
| 380 scoped_refptr<WindowProxy> AutomatedUITestBase::GetAndActivateWindowForBrowser( | 380 scoped_refptr<WindowProxy> AutomatedUITestBase::GetAndActivateWindowForBrowser( |
| 381 BrowserProxy* browser) { | 381 BrowserProxy* browser) { |
| 382 if (!browser->BringToFront()) { | 382 if (!browser->BringToFront()) { |
| 383 LogWarningMessage("failed_to_bring_window_to_front"); | 383 LogWarningMessage("failed_to_bring_window_to_front"); |
| 384 return NULL; | 384 return NULL; |
| 385 } | 385 } |
| 386 | 386 |
| 387 return browser->GetWindow(); | 387 return browser->GetWindow(); |
| 388 } | 388 } |
| OLD | NEW |