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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 if (!cmd_line->HasSwitch(name)) | 48 if (!cmd_line->HasSwitch(name)) |
49 cmd_line->AppendSwitch(name); | 49 cmd_line->AppendSwitch(name); |
50 } | 50 } |
51 | 51 |
52 class DefaultService : public service_manager::Service { | 52 class DefaultService : public service_manager::Service { |
53 public: | 53 public: |
54 DefaultService() {} | 54 DefaultService() {} |
55 ~DefaultService() override {} | 55 ~DefaultService() override {} |
56 | 56 |
57 // service_manager::Service: | 57 // service_manager::Service: |
58 void OnBindInterface(const service_manager::ServiceInfo& source_info, | 58 void OnBindInterface(const service_manager::BindSourceInfo& source_info, |
59 const std::string& interface_name, | 59 const std::string& interface_name, |
60 mojo::ScopedMessagePipeHandle interface_pipe) override {} | 60 mojo::ScopedMessagePipeHandle interface_pipe) override {} |
61 | 61 |
62 private: | 62 private: |
63 DISALLOW_COPY_AND_ASSIGN(DefaultService); | 63 DISALLOW_COPY_AND_ASSIGN(DefaultService); |
64 }; | 64 }; |
65 | 65 |
66 class PlatformTestHelperMus : public PlatformTestHelper { | 66 class PlatformTestHelperMus : public PlatformTestHelper { |
67 public: | 67 public: |
68 PlatformTestHelperMus(service_manager::Connector* connector, | 68 PlatformTestHelperMus(service_manager::Connector* connector, |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 | 263 |
264 void ViewsMusTestSuite::InitializeEnv() { | 264 void ViewsMusTestSuite::InitializeEnv() { |
265 env_ = aura::Env::CreateInstance(aura::Env::Mode::MUS); | 265 env_ = aura::Env::CreateInstance(aura::Env::Mode::MUS); |
266 } | 266 } |
267 | 267 |
268 void ViewsMusTestSuite::DestroyEnv() { | 268 void ViewsMusTestSuite::DestroyEnv() { |
269 env_.reset(); | 269 env_.reset(); |
270 } | 270 } |
271 | 271 |
272 } // namespace views | 272 } // namespace views |
OLD | NEW |