| 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_UI_UI_TEST_H_ | 5 #ifndef CHROME_TEST_UI_UI_TEST_H_ |
| 6 #define CHROME_TEST_UI_UI_TEST_H_ | 6 #define CHROME_TEST_UI_UI_TEST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 // This file provides a common base for running UI unit tests, which operate | 9 // This file provides a common base for running UI unit tests, which operate |
| 10 // the entire browser application in a separate process for holistic | 10 // the entire browser application in a separate process for holistic |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // Tells the browser to navigate to the given URL in the active tab | 113 // Tells the browser to navigate to the given URL in the active tab |
| 114 // of the first app window. | 114 // of the first app window. |
| 115 // Does not wait for the navigation to complete to return. | 115 // Does not wait for the navigation to complete to return. |
| 116 void NavigateToURLAsync(const GURL& url); | 116 void NavigateToURLAsync(const GURL& url); |
| 117 | 117 |
| 118 // Tells the browser to navigate to the given URL in the active tab | 118 // Tells the browser to navigate to the given URL in the active tab |
| 119 // of the first app window. | 119 // of the first app window. |
| 120 // This method doesn't return until the navigation is complete. | 120 // This method doesn't return until the navigation is complete. |
| 121 void NavigateToURL(const GURL& url); | 121 void NavigateToURL(const GURL& url); |
| 122 | 122 |
| 123 // Navigate to the given URL in the active tab of the given app window. |
| 124 void NavigateToURL(const GURL& url, int window_index); |
| 125 |
| 123 // Same as above, except in the given tab and window. | 126 // Same as above, except in the given tab and window. |
| 124 void NavigateToURL(const GURL& url, int window_index, int tab_index); | 127 void NavigateToURL(const GURL& url, int window_index, int tab_index); |
| 125 | 128 |
| 126 // Tells the browser to navigate to the given URL in the active tab | 129 // Tells the browser to navigate to the given URL in the active tab |
| 127 // of the first app window. | 130 // of the first app window. |
| 128 // This method doesn't return until the |number_of_navigations| navigations | 131 // This method doesn't return until the |number_of_navigations| navigations |
| 129 // complete. | 132 // complete. |
| 130 void NavigateToURLBlockUntilNavigationsComplete(const GURL& url, | 133 void NavigateToURLBlockUntilNavigationsComplete(const GURL& url, |
| 131 int number_of_navigations); | 134 int number_of_navigations); |
| 132 | 135 |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 #ifdef UNIT_TEST | 511 #ifdef UNIT_TEST |
| 509 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr); | 512 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr); |
| 510 | 513 |
| 511 template<typename T> | 514 template<typename T> |
| 512 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) { | 515 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) { |
| 513 return out << ptr.get(); | 516 return out << ptr.get(); |
| 514 } | 517 } |
| 515 #endif // UNIT_TEST | 518 #endif // UNIT_TEST |
| 516 | 519 |
| 517 #endif // CHROME_TEST_UI_UI_TEST_H_ | 520 #endif // CHROME_TEST_UI_UI_TEST_H_ |
| OLD | NEW |