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

Side by Side Diff: ui/views/mus/views_mus_test_suite.cc

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
« no previous file with comments | « ui/gl/test/gl_surface_test_support.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "ui/views/mus/views_mus_test_suite.h" 5 #include "ui/views/mus/views_mus_test_suite.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 216
217 ViewsMusTestSuite::~ViewsMusTestSuite() {} 217 ViewsMusTestSuite::~ViewsMusTestSuite() {}
218 218
219 void ViewsMusTestSuite::Initialize() { 219 void ViewsMusTestSuite::Initialize() {
220 PlatformTestHelper::SetIsMus(); 220 PlatformTestHelper::SetIsMus();
221 // Let other services know that we're running in tests. Do this with a 221 // Let other services know that we're running in tests. Do this with a
222 // command line flag to avoid making blocking calls to other processes for 222 // command line flag to avoid making blocking calls to other processes for
223 // setup for tests (e.g. to unlock the screen in the window manager). 223 // setup for tests (e.g. to unlock the screen in the window manager).
224 EnsureCommandLineSwitch(ui::switches::kUseTestConfig); 224 EnsureCommandLineSwitch(ui::switches::kUseTestConfig);
225 225
226 EnsureCommandLineSwitch(switches::kOverrideUseGLWithOSMesaForTests); 226 EnsureCommandLineSwitch(switches::kOverrideUseSoftwareGLForTests);
227 227
228 ViewsTestSuite::Initialize(); 228 ViewsTestSuite::Initialize();
229 service_manager_connections_ = base::MakeUnique<ServiceManagerConnection>(); 229 service_manager_connections_ = base::MakeUnique<ServiceManagerConnection>();
230 } 230 }
231 231
232 void ViewsMusTestSuite::Shutdown() { 232 void ViewsMusTestSuite::Shutdown() {
233 service_manager_connections_.reset(); 233 service_manager_connections_.reset();
234 ViewsTestSuite::Shutdown(); 234 ViewsTestSuite::Shutdown();
235 } 235 }
236 236
237 } // namespace views 237 } // namespace views
OLDNEW
« no previous file with comments | « ui/gl/test/gl_surface_test_support.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698