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

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

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 "mojo/services/ui/views/interfaces/view_manager.mojom.h"
6 #include "mojo/services/ui/views/interfaces/views.mojom.h"
7
8 namespace view_manager {
9 namespace test {
10
11 class MockViewAssociate : public mojo::ui::ViewAssociate {
12 public:
13 MockViewAssociate();
14 ~MockViewAssociate() override;
15
16 void Connect(mojo::InterfaceHandle<mojo::ui::ViewInspector> inspector,
17 const ConnectCallback& callback) override;
18
19 void ConnectToViewService(
20 mojo::ui::ViewTokenPtr view_token,
21 const mojo::String& service_name,
22 mojo::ScopedMessagePipeHandle client_handle) override;
23
24 void ConnectToViewTreeService(
25 mojo::ui::ViewTreeTokenPtr view_tree_token,
26 const mojo::String& service_name,
27 mojo::ScopedMessagePipeHandle client_handle) override;
28
29 int connect_invokecount = 0;
30 };
31
32 } // namespace test
33 } // namespace view_manager
OLDNEW
« no previous file with comments | « services/ui/view_manager/BUILD.gn ('k') | services/ui/view_manager/tests/mock_view_associate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698