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 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
12 #include "base/synchronization/waitable_event.h" | 12 #include "base/synchronization/waitable_event.h" |
13 #include "base/threading/simple_thread.h" | 13 #include "base/threading/simple_thread.h" |
14 #include "base/threading/thread.h" | 14 #include "base/threading/thread.h" |
15 #include "components/mus/common/gpu_service.h" | |
16 #include "components/mus/common/switches.h" | |
17 #include "services/shell/background/background_shell.h" | 15 #include "services/shell/background/background_shell.h" |
18 #include "services/shell/public/cpp/connector.h" | 16 #include "services/shell/public/cpp/connector.h" |
19 #include "services/shell/public/cpp/shell_client.h" | 17 #include "services/shell/public/cpp/shell_client.h" |
20 #include "services/shell/public/cpp/shell_connection.h" | 18 #include "services/shell/public/cpp/shell_connection.h" |
| 19 #include "services/ui/common/gpu_service.h" |
| 20 #include "services/ui/common/switches.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 #include "ui/views/mus/window_manager_connection.h" | 22 #include "ui/views/mus/window_manager_connection.h" |
23 #include "ui/views/test/platform_test_helper.h" | 23 #include "ui/views/test/platform_test_helper.h" |
24 #include "ui/views/views_delegate.h" | 24 #include "ui/views/views_delegate.h" |
25 | 25 |
26 namespace views { | 26 namespace views { |
27 namespace { | 27 namespace { |
28 | 28 |
29 void EnsureCommandLineSwitch(const std::string& name) { | 29 void EnsureCommandLineSwitch(const std::string& name) { |
30 base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess(); | 30 base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess(); |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 ViewsTestSuite::Initialize(); | 172 ViewsTestSuite::Initialize(); |
173 shell_connections_.reset(new ShellConnection); | 173 shell_connections_.reset(new ShellConnection); |
174 } | 174 } |
175 | 175 |
176 void ViewsMusTestSuite::Shutdown() { | 176 void ViewsMusTestSuite::Shutdown() { |
177 shell_connections_.reset(); | 177 shell_connections_.reset(); |
178 ViewsTestSuite::Shutdown(); | 178 ViewsTestSuite::Shutdown(); |
179 } | 179 } |
180 | 180 |
181 } // namespace views | 181 } // namespace views |
OLD | NEW |