| 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 CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_ |
| 6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_ | 6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 public: | 30 public: |
| 31 BrowserTestBase(); | 31 BrowserTestBase(); |
| 32 virtual ~BrowserTestBase(); | 32 virtual ~BrowserTestBase(); |
| 33 | 33 |
| 34 // We do this so we can be used in a Task. | 34 // We do this so we can be used in a Task. |
| 35 void AddRef() {} | 35 void AddRef() {} |
| 36 void Release() {} | 36 void Release() {} |
| 37 | 37 |
| 38 // Configures everything for an in process browser test, then invokes | 38 // Configures everything for an in process browser test, then invokes |
| 39 // BrowserMain. BrowserMain ends up invoking RunTestOnMainThreadLoop. | 39 // BrowserMain. BrowserMain ends up invoking RunTestOnMainThreadLoop. |
| 40 virtual void SetUp() OVERRIDE; | 40 virtual void SetUp() override; |
| 41 | 41 |
| 42 // Restores state configured in SetUp. | 42 // Restores state configured in SetUp. |
| 43 virtual void TearDown() OVERRIDE; | 43 virtual void TearDown() override; |
| 44 | 44 |
| 45 // Override this to add any custom setup code that needs to be done on the | 45 // Override this to add any custom setup code that needs to be done on the |
| 46 // main thread after the browser is created and just before calling | 46 // main thread after the browser is created and just before calling |
| 47 // RunTestOnMainThread(). | 47 // RunTestOnMainThread(). |
| 48 virtual void SetUpOnMainThread() {} | 48 virtual void SetUpOnMainThread() {} |
| 49 | 49 |
| 50 // Override this to add any custom teardown code that needs to be done on the | 50 // Override this to add any custom teardown code that needs to be done on the |
| 51 // main thread right after RunTestOnMainThread(). | 51 // main thread right after RunTestOnMainThread(). |
| 52 virtual void TearDownOnMainThread() {} | 52 virtual void TearDownOnMainThread() {} |
| 53 | 53 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 bool use_software_compositing_; | 153 bool use_software_compositing_; |
| 154 | 154 |
| 155 #if defined(OS_POSIX) | 155 #if defined(OS_POSIX) |
| 156 bool handle_sigterm_; | 156 bool handle_sigterm_; |
| 157 #endif | 157 #endif |
| 158 }; | 158 }; |
| 159 | 159 |
| 160 } // namespace content | 160 } // namespace content |
| 161 | 161 |
| 162 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_ | 162 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_ |
| OLD | NEW |