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

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

Issue 2690113010: Abstract OSMesa from the Layout tests (Closed)
Patch Set: Renamed "Renderer" to "GL" Created 3 years, 10 months 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
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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl_private.cc ('k') | content/public/test/browser_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698