| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |