| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // returns. | 114 // returns. |
| 115 void PostTaskToInProcessRendererAndWait(const base::Closure& task); | 115 void PostTaskToInProcessRendererAndWait(const base::Closure& task); |
| 116 | 116 |
| 117 // Call this before SetUp() to cause the test to generate pixel output. | 117 // Call this before SetUp() to cause the test to generate pixel output. |
| 118 void EnablePixelOutput(); | 118 void EnablePixelOutput(); |
| 119 | 119 |
| 120 // Call this before SetUp() to not use GL, but use software compositing | 120 // Call this before SetUp() to not use GL, but use software compositing |
| 121 // instead. | 121 // instead. |
| 122 void UseSoftwareCompositing(); | 122 void UseSoftwareCompositing(); |
| 123 | 123 |
| 124 // Returns true if the test will be using GL acceleration via OSMesa. | 124 // Returns true if the test will be using GL acceleration via a software GL. |
| 125 bool UsingOSMesa() const; | 125 bool UsingSoftwareGL() const; |
| 126 | 126 |
| 127 private: | 127 private: |
| 128 void ProxyRunTestOnMainThreadLoop(); | 128 void ProxyRunTestOnMainThreadLoop(); |
| 129 | 129 |
| 130 // Testing server, started on demand. | 130 // Testing server, started on demand. |
| 131 std::unique_ptr<net::SpawnedTestServer> spawned_test_server_; | 131 std::unique_ptr<net::SpawnedTestServer> spawned_test_server_; |
| 132 | 132 |
| 133 // Embedded test server, cheap to create, started on demand. | 133 // Embedded test server, cheap to create, started on demand. |
| 134 std::unique_ptr<net::EmbeddedTestServer> embedded_test_server_; | 134 std::unique_ptr<net::EmbeddedTestServer> embedded_test_server_; |
| 135 | 135 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 152 bool set_up_called_; | 152 bool set_up_called_; |
| 153 | 153 |
| 154 #if defined(OS_POSIX) | 154 #if defined(OS_POSIX) |
| 155 bool handle_sigterm_; | 155 bool handle_sigterm_; |
| 156 #endif | 156 #endif |
| 157 }; | 157 }; |
| 158 | 158 |
| 159 } // namespace content | 159 } // namespace content |
| 160 | 160 |
| 161 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_ | 161 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_ |
| OLD | NEW |