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. |
11 // | 11 // |
12 // Tests should #include this file, subclass UITest, and use the TEST_F macro | 12 // Tests should #include this file, subclass UITest, and use the TEST_F macro |
13 // to declare individual test cases. This provides a running browser window | 13 // to declare individual test cases. This provides a running browser window |
14 // during the test, accessible through the window_ member variable. The window | 14 // during the test, accessible through the window_ member variable. The window |
15 // will close when the test ends, regardless of whether the test passed. | 15 // will close when the test ends, regardless of whether the test passed. |
16 // | 16 // |
17 // Tests which need to launch the browser with a particular set of command-line | 17 // Tests which need to launch the browser with a particular set of command-line |
18 // arguments should set the value of launch_arguments_ in their constructors. | 18 // arguments should set the value of launch_arguments_ in their constructors. |
19 | 19 |
20 #include <string> | 20 #include <string> |
21 | 21 |
22 #include "base/command_line.h" | 22 #include "base/command_line.h" |
23 #include "base/memory/scoped_ptr.h" | 23 #include "base/memory/scoped_ptr.h" |
24 #include "base/message_loop/message_loop.h" | 24 #include "base/message_loop/message_loop.h" |
25 #include "base/process.h" | 25 #include "base/process/process.h" |
26 #include "base/time/time.h" | 26 #include "base/time/time.h" |
27 #include "chrome/test/automation/proxy_launcher.h" | 27 #include "chrome/test/automation/proxy_launcher.h" |
28 #include "testing/platform_test.h" | 28 #include "testing/platform_test.h" |
29 #include "url/gurl.h" | 29 #include "url/gurl.h" |
30 | 30 |
31 class AutomationProxy; | 31 class AutomationProxy; |
32 class BrowserProxy; | 32 class BrowserProxy; |
33 class GURL; | 33 class GURL; |
34 class TabProxy; | 34 class TabProxy; |
35 | 35 |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 #ifdef UNIT_TEST | 420 #ifdef UNIT_TEST |
421 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr); | 421 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr); |
422 | 422 |
423 template<typename T> | 423 template<typename T> |
424 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) { | 424 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) { |
425 return out << ptr.get(); | 425 return out << ptr.get(); |
426 } | 426 } |
427 #endif // UNIT_TEST | 427 #endif // UNIT_TEST |
428 | 428 |
429 #endif // CHROME_TEST_UI_UI_TEST_H_ | 429 #endif // CHROME_TEST_UI_UI_TEST_H_ |
OLD | NEW |