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

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

Issue 2807833002: [views-mus] Prevent creating a native OzonePlatform in mus tests. (Closed)
Patch Set: sky comments Created 3 years, 8 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 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 254
255 ViewsTestSuite::Initialize(); 255 ViewsTestSuite::Initialize();
256 service_manager_connections_ = base::MakeUnique<ServiceManagerConnection>(); 256 service_manager_connections_ = base::MakeUnique<ServiceManagerConnection>();
257 } 257 }
258 258
259 void ViewsMusTestSuite::Shutdown() { 259 void ViewsMusTestSuite::Shutdown() {
260 service_manager_connections_.reset(); 260 service_manager_connections_.reset();
261 ViewsTestSuite::Shutdown(); 261 ViewsTestSuite::Shutdown();
262 } 262 }
263 263
264 void ViewsMusTestSuite::InitializeEnv() {
265 env_ = aura::Env::CreateInstance(aura::Env::Mode::MUS);
266 }
267
268 void ViewsMusTestSuite::DestroyEnv() {
269 env_.reset();
270 }
271
264 } // namespace views 272 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698