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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 // test. | 126 // test. |
127 void UseRealGLBindings() { allow_osmesa_ = false; } | 127 void UseRealGLBindings() { allow_osmesa_ = false; } |
128 | 128 |
129 private: | 129 private: |
130 void ProxyRunTestOnMainThreadLoop(); | 130 void ProxyRunTestOnMainThreadLoop(); |
131 | 131 |
132 // Testing server, started on demand. | 132 // Testing server, started on demand. |
133 scoped_ptr<net::SpawnedTestServer> test_server_; | 133 scoped_ptr<net::SpawnedTestServer> test_server_; |
134 | 134 |
135 // Embedded test server, cheap to create, started on demand. | 135 // Embedded test server, cheap to create, started on demand. |
136 base::Thread embedded_test_server_io_thread_; | |
137 scoped_ptr<net::test_server::EmbeddedTestServer> embedded_test_server_; | 136 scoped_ptr<net::test_server::EmbeddedTestServer> embedded_test_server_; |
138 | 137 |
139 // Host resolver used during tests. | 138 // Host resolver used during tests. |
140 scoped_refptr<net::RuleBasedHostResolverProc> rule_based_resolver_; | 139 scoped_refptr<net::RuleBasedHostResolverProc> rule_based_resolver_; |
141 | 140 |
142 // When false, the ui::Compositor will be forced to use real GL contexts for | 141 // When false, the ui::Compositor will be forced to use real GL contexts for |
143 // the test, so that it produces real pixel output. | 142 // the test, so that it produces real pixel output. |
144 bool allow_test_contexts_; | 143 bool allow_test_contexts_; |
145 | 144 |
146 // When false, the GL backend will use a real GPU. When true, it uses OSMesa | 145 // When false, the GL backend will use a real GPU. When true, it uses OSMesa |
147 // to run GL on the CPU in a way that works across all platforms. | 146 // to run GL on the CPU in a way that works across all platforms. |
148 bool allow_osmesa_; | 147 bool allow_osmesa_; |
149 | 148 |
150 #if defined(OS_POSIX) | 149 #if defined(OS_POSIX) |
151 bool handle_sigterm_; | 150 bool handle_sigterm_; |
152 #endif | 151 #endif |
153 }; | 152 }; |
154 | 153 |
155 } // namespace content | 154 } // namespace content |
156 | 155 |
157 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_ | 156 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_ |
OLD | NEW |