| 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 #ifndef CHROME_TEST_BASE_UI_TEST_UTILS_H_ | 5 #ifndef CHROME_TEST_BASE_UI_TEST_UTILS_H_ |
| 6 #define CHROME_TEST_BASE_UI_TEST_UTILS_H_ | 6 #define CHROME_TEST_BASE_UI_TEST_UTILS_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // test_root_directory/dir/<file> | 123 // test_root_directory/dir/<file> |
| 124 // The returned path is FilePath format. | 124 // The returned path is FilePath format. |
| 125 FilePath GetTestFilePath(const FilePath& dir, const FilePath& file); | 125 FilePath GetTestFilePath(const FilePath& dir, const FilePath& file); |
| 126 | 126 |
| 127 // Generate the URL for testing a particular test. | 127 // Generate the URL for testing a particular test. |
| 128 // HTML for the tests is all located in | 128 // HTML for the tests is all located in |
| 129 // test_root_directory/dir/<file> | 129 // test_root_directory/dir/<file> |
| 130 // The returned path is GURL format. | 130 // The returned path is GURL format. |
| 131 GURL GetTestUrl(const FilePath& dir, const FilePath& file); | 131 GURL GetTestUrl(const FilePath& dir, const FilePath& file); |
| 132 | 132 |
| 133 // Generate the path of the build directory, relative to the source root. |
| 134 bool GetRelativeBuildDirectory(FilePath *build_dir); |
| 135 |
| 133 // Blocks until an application modal dialog is showns and returns it. | 136 // Blocks until an application modal dialog is showns and returns it. |
| 134 AppModalDialog* WaitForAppModalDialog(); | 137 AppModalDialog* WaitForAppModalDialog(); |
| 135 | 138 |
| 136 // Performs a find in the page of the specified tab. Returns the number of | 139 // Performs a find in the page of the specified tab. Returns the number of |
| 137 // matches found. |ordinal| is an optional parameter which is set to the index | 140 // matches found. |ordinal| is an optional parameter which is set to the index |
| 138 // of the current match. | 141 // of the current match. |
| 139 int FindInPage(TabContents* tab, | 142 int FindInPage(TabContents* tab, |
| 140 const string16& search_string, | 143 const string16& search_string, |
| 141 bool forward, | 144 bool forward, |
| 142 bool case_sensitive, | 145 bool case_sensitive, |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 // ui_controls_linux.cc and ui_controls_mac.cc | 432 // ui_controls_linux.cc and ui_controls_mac.cc |
| 430 void ClickTask(ui_controls::MouseButton button, | 433 void ClickTask(ui_controls::MouseButton button, |
| 431 int state, | 434 int state, |
| 432 const base::Closure& followup); | 435 const base::Closure& followup); |
| 433 | 436 |
| 434 } // namespace internal | 437 } // namespace internal |
| 435 | 438 |
| 436 } // namespace ui_test_utils | 439 } // namespace ui_test_utils |
| 437 | 440 |
| 438 #endif // CHROME_TEST_BASE_UI_TEST_UTILS_H_ | 441 #endif // CHROME_TEST_BASE_UI_TEST_UTILS_H_ |
| OLD | NEW |