| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 | 7 |
| 8 // This file provides a common base for running UI unit tests, which operate | 8 // This file provides a common base for running UI unit tests, which operate |
| 9 // the entire browser application in a separate process for holistic | 9 // the entire browser application in a separate process for holistic |
| 10 // functional testing. | 10 // functional testing. |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // LaunchAnotherBrowserBlockUntilClosed. | 84 // LaunchAnotherBrowserBlockUntilClosed. |
| 85 void LaunchBrowser(const CommandLine& cmdline, bool clear_profile); | 85 void LaunchBrowser(const CommandLine& cmdline, bool clear_profile); |
| 86 | 86 |
| 87 // Launches an another browser process and waits for it to finish. Returns | 87 // Launches an another browser process and waits for it to finish. Returns |
| 88 // true on success. | 88 // true on success. |
| 89 bool LaunchAnotherBrowserBlockUntilClosed(const CommandLine& cmdline); | 89 bool LaunchAnotherBrowserBlockUntilClosed(const CommandLine& cmdline); |
| 90 | 90 |
| 91 // Exits out browser instance. | 91 // Exits out browser instance. |
| 92 void QuitBrowser(); | 92 void QuitBrowser(); |
| 93 | 93 |
| 94 // Terminates the browser, simulates end of session. |
| 95 void TerminateBrowser(); |
| 96 |
| 94 // Tells the browser to navigato to the givne URL in the active tab | 97 // Tells the browser to navigato to the givne URL in the active tab |
| 95 // of the first app window. | 98 // of the first app window. |
| 96 // Does not wait for the navigation to complete to return. | 99 // Does not wait for the navigation to complete to return. |
| 97 void NavigateToURLAsync(const GURL& url); | 100 void NavigateToURLAsync(const GURL& url); |
| 98 | 101 |
| 99 // Tells the browser to navigate to the given URL in the active tab | 102 // Tells the browser to navigate to the given URL in the active tab |
| 100 // of the first app window. | 103 // of the first app window. |
| 101 // This method doesn't return until the navigation is complete. | 104 // This method doesn't return until the navigation is complete. |
| 102 void NavigateToURL(const GURL& url); | 105 void NavigateToURL(const GURL& url); |
| 103 | 106 |
| (...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 #ifdef UNIT_TEST | 647 #ifdef UNIT_TEST |
| 645 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr); | 648 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr); |
| 646 | 649 |
| 647 template<typename T> | 650 template<typename T> |
| 648 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) { | 651 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) { |
| 649 return out << ptr.get(); | 652 return out << ptr.get(); |
| 650 } | 653 } |
| 651 #endif // UNIT_TEST | 654 #endif // UNIT_TEST |
| 652 | 655 |
| 653 #endif // CHROME_TEST_UI_UI_TEST_H_ | 656 #endif // CHROME_TEST_UI_UI_TEST_H_ |
| OLD | NEW |