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

Side by Side Diff: services/ui/ws/window_server_test_base.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/ui/ws/window_server_test_base.h ('k') | services/ui/ws/window_tree_client_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "services/ui/ws/window_server_test_base.h" 5 #include "services/ui/ws/window_server_test_base.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // WindowTreeHost depends on WindowTreeClient. 109 // WindowTreeHost depends on WindowTreeClient.
110 window_tree_hosts_.clear(); 110 window_tree_hosts_.clear();
111 window_tree_clients_.clear(); 111 window_tree_clients_.clear();
112 env_.reset(); 112 env_.reset();
113 display::Screen::SetScreenInstance(nullptr); 113 display::Screen::SetScreenInstance(nullptr);
114 114
115 WindowServerServiceTestBase::TearDown(); 115 WindowServerServiceTestBase::TearDown();
116 } 116 }
117 117
118 void WindowServerTestBase::OnBindInterface( 118 void WindowServerTestBase::OnBindInterface(
119 const service_manager::ServiceInfo& source_info, 119 const service_manager::BindSourceInfo& source_info,
120 const std::string& interface_name, 120 const std::string& interface_name,
121 mojo::ScopedMessagePipeHandle interface_pipe) { 121 mojo::ScopedMessagePipeHandle interface_pipe) {
122 registry_.BindInterface(source_info.identity, interface_name, 122 registry_.BindInterface(source_info.identity, interface_name,
123 std::move(interface_pipe)); 123 std::move(interface_pipe));
124 } 124 }
125 125
126 void WindowServerTestBase::OnEmbed( 126 void WindowServerTestBase::OnEmbed(
127 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host) { 127 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host) {
128 EXPECT_TRUE(QuitRunLoop()); 128 EXPECT_TRUE(QuitRunLoop());
129 window_tree_hosts_.push_back(std::move(window_tree_host)); 129 window_tree_hosts_.push_back(std::move(window_tree_host));
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 ++iter) { 294 ++iter) {
295 if ((*iter).get() == window_tree_host) { 295 if ((*iter).get() == window_tree_host) {
296 window_tree_hosts_.erase(iter); 296 window_tree_hosts_.erase(iter);
297 return true; 297 return true;
298 } 298 }
299 } 299 }
300 return false; 300 return false;
301 } 301 }
302 302
303 } // namespace ui 303 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/window_server_test_base.h ('k') | services/ui/ws/window_tree_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698