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 #ifndef CHROME_TEST_RELIABILITY_AUTOMATED_UI_TEST_BASE_H_ | 5 #ifndef CHROME_TEST_RELIABILITY_AUTOMATED_UI_TEST_BASE_H_ |
6 #define CHROME_TEST_RELIABILITY_AUTOMATED_UI_TEST_BASE_H_ | 6 #define CHROME_TEST_RELIABILITY_AUTOMATED_UI_TEST_BASE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "chrome/test/ui/ui_test.h" | 11 #include "chrome/test/ui/ui_test.h" |
12 | 12 |
13 class WindowProxy; | 13 class WindowProxy; |
14 | 14 |
15 class AutomatedUITestBase : public UITest { | 15 class AutomatedUITestBase : public UITest { |
16 protected: | 16 protected: |
17 AutomatedUITestBase(); | 17 AutomatedUITestBase(); |
18 virtual ~AutomatedUITestBase(); | 18 virtual ~AutomatedUITestBase(); |
19 | 19 |
20 virtual void SetUp(); | 20 virtual void SetUp() OVERRIDE; |
21 | 21 |
22 virtual void LogErrorMessage(const std::string &error); | 22 virtual void LogErrorMessage(const std::string &error); |
23 virtual void LogWarningMessage(const std::string &warning); | 23 virtual void LogWarningMessage(const std::string &warning); |
24 virtual void LogInfoMessage(const std::string &info); | 24 virtual void LogInfoMessage(const std::string &info); |
25 | 25 |
26 // Actions | 26 // Actions |
27 | 27 |
28 // NOTE: This list is sorted alphabetically. | 28 // NOTE: This list is sorted alphabetically. |
29 // All functions are synchronous unless specified with Async. | 29 // All functions are synchronous unless specified with Async. |
30 | 30 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 scoped_refptr<WindowProxy> GetAndActivateWindowForBrowser( | 153 scoped_refptr<WindowProxy> GetAndActivateWindowForBrowser( |
154 BrowserProxy* browser); | 154 BrowserProxy* browser); |
155 | 155 |
156 private: | 156 private: |
157 scoped_refptr<BrowserProxy> active_browser_; | 157 scoped_refptr<BrowserProxy> active_browser_; |
158 | 158 |
159 DISALLOW_COPY_AND_ASSIGN(AutomatedUITestBase); | 159 DISALLOW_COPY_AND_ASSIGN(AutomatedUITestBase); |
160 }; | 160 }; |
161 | 161 |
162 #endif // CHROME_TEST_RELIABILITY_AUTOMATED_UI_TEST_BASE_H_ | 162 #endif // CHROME_TEST_RELIABILITY_AUTOMATED_UI_TEST_BASE_H_ |
OLD | NEW |