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

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

Issue 2850743004: Replace ServiceInfo with BindSourceInfo. (Closed)
Patch Set: . Created 3 years, 7 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 | « services/video_capture/service_impl.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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « services/video_capture/service_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698