| 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 15 matching lines...) Expand all Loading... |
| 26 #include "base/process.h" | 26 #include "base/process.h" |
| 27 #include "base/time.h" | 27 #include "base/time.h" |
| 28 #include "chrome/test/automation/proxy_launcher.h" | 28 #include "chrome/test/automation/proxy_launcher.h" |
| 29 #include "googleurl/src/gurl.h" | 29 #include "googleurl/src/gurl.h" |
| 30 #include "testing/platform_test.h" | 30 #include "testing/platform_test.h" |
| 31 | 31 |
| 32 class AutomationProxy; | 32 class AutomationProxy; |
| 33 class BrowserProxy; | 33 class BrowserProxy; |
| 34 class FilePath; | 34 class FilePath; |
| 35 class GURL; | 35 class GURL; |
| 36 class ScopedTempDir; | |
| 37 class TabProxy; | 36 class TabProxy; |
| 38 | 37 |
| 39 namespace base { | 38 namespace base { |
| 40 class DictionaryValue; | 39 class DictionaryValue; |
| 41 } | 40 } |
| 42 | 41 |
| 43 // Base class for UI Tests. This implements the core of the functions. | 42 // Base class for UI Tests. This implements the core of the functions. |
| 44 // This base class decouples all automation functionality from testing | 43 // This base class decouples all automation functionality from testing |
| 45 // infrastructure, for use without gtest. | 44 // infrastructure, for use without gtest. |
| 46 // If using gtest, you probably want to inherit from UITest (declared below) | 45 // If using gtest, you probably want to inherit from UITest (declared below) |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 #ifdef UNIT_TEST | 483 #ifdef UNIT_TEST |
| 485 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr); | 484 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr); |
| 486 | 485 |
| 487 template<typename T> | 486 template<typename T> |
| 488 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) { | 487 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) { |
| 489 return out << ptr.get(); | 488 return out << ptr.get(); |
| 490 } | 489 } |
| 491 #endif // UNIT_TEST | 490 #endif // UNIT_TEST |
| 492 | 491 |
| 493 #endif // CHROME_TEST_UI_UI_TEST_H_ | 492 #endif // CHROME_TEST_UI_UI_TEST_H_ |
| OLD | NEW |