Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: content/public/test/browser_test_base.h

Issue 37683004: GTTF: Make EmbeddedTestServer always use its own thread for IO (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/pdf/pdf_browsertest.cc ('k') | content/public/test/browser_test_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/pdf/pdf_browsertest.cc ('k') | content/public/test/browser_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698