Chromium Code Reviews| 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_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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 421 // Terminates the browser, simulates end of session. | 421 // Terminates the browser, simulates end of session. |
| 422 void TerminateBrowser(); | 422 void TerminateBrowser(); |
| 423 | 423 |
| 424 // Tells the browser to navigate to the given URL in the active tab | 424 // Tells the browser to navigate to the given URL in the active tab |
| 425 // of the first app window. | 425 // of the first app window. |
| 426 // Does not wait for the navigation to complete to return. | 426 // Does not wait for the navigation to complete to return. |
| 427 // To avoid intermittent test failures, use NavigateToURL instead, if | 427 // To avoid intermittent test failures, use NavigateToURL instead, if |
| 428 // possible. | 428 // possible. |
| 429 void NavigateToURLAsync(const GURL& url); | 429 void NavigateToURLAsync(const GURL& url); |
| 430 | 430 |
| 431 private: | |
|
akalin
2012/10/19 23:12:21
is this still needed? looks like you can revert t
zel
2012/10/21 20:03:19
Yes, it's needed. One of the sub-classes need to a
| |
| 432 MessageLoop message_loop_; // Enables PostTask to main thread. | 431 MessageLoop message_loop_; // Enables PostTask to main thread. |
| 433 }; | 432 }; |
| 434 | 433 |
| 435 // These exist only to support the gTest assertion macros, and | 434 // These exist only to support the gTest assertion macros, and |
| 436 // shouldn't be used in normal program code. | 435 // shouldn't be used in normal program code. |
| 437 #ifdef UNIT_TEST | 436 #ifdef UNIT_TEST |
| 438 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr); | 437 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr); |
| 439 | 438 |
| 440 template<typename T> | 439 template<typename T> |
| 441 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) { | 440 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) { |
| 442 return out << ptr.get(); | 441 return out << ptr.get(); |
| 443 } | 442 } |
| 444 #endif // UNIT_TEST | 443 #endif // UNIT_TEST |
| 445 | 444 |
| 446 #endif // CHROME_TEST_UI_UI_TEST_H_ | 445 #endif // CHROME_TEST_UI_UI_TEST_H_ |
| OLD | NEW |