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

Side by Side Diff: services/ui/view_manager/tests/mock_view_associate.cc

Issue 1949233002: Create a RegisterViewAssociate method in ViewManager (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: add tests to mojo tests Created 4 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "services/ui/view_manager/tests/mock_view_associate.h"
6
7 namespace view_manager {
8 namespace test {
9
10 MockViewAssociate::MockViewAssociate() {}
11 MockViewAssociate::~MockViewAssociate() {}
12
13 void MockViewAssociate::Connect(
14 mojo::InterfaceHandle<mojo::ui::ViewInspector> inspector,
15 const ConnectCallback& callback) {
16 connect_invokecount++;
17
18 auto info = mojo::ui::ViewAssociateInfo::New();
19 callback.Run(info.Pass());
20 }
21
22 void MockViewAssociate::ConnectToViewService(
23 mojo::ui::ViewTokenPtr view_token,
24 const mojo::String& service_name,
25 mojo::ScopedMessagePipeHandle client_handle) {}
26
27 void MockViewAssociate::ConnectToViewTreeService(
28 mojo::ui::ViewTreeTokenPtr view_tree_token,
29 const mojo::String& service_name,
30 mojo::ScopedMessagePipeHandle client_handle) {}
31
32 } // namespace test
33 } // namespace view_manager
OLDNEW
« no previous file with comments | « services/ui/view_manager/tests/mock_view_associate.h ('k') | services/ui/view_manager/tests/view_associate_table_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698