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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/view_manager/tests/mock_view_associate.h
diff --git a/services/ui/view_manager/tests/mock_view_associate.h b/services/ui/view_manager/tests/mock_view_associate.h
new file mode 100644
index 0000000000000000000000000000000000000000..337348c60184b4110964d121a4c9d55db0615cca
--- /dev/null
+++ b/services/ui/view_manager/tests/mock_view_associate.h
@@ -0,0 +1,33 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "mojo/services/ui/views/interfaces/view_manager.mojom.h"
+#include "mojo/services/ui/views/interfaces/views.mojom.h"
+
+namespace view_manager {
+namespace test {
+
+class MockViewAssociate : public mojo::ui::ViewAssociate {
+ public:
+ MockViewAssociate();
+ ~MockViewAssociate() override;
+
+ void Connect(mojo::InterfaceHandle<mojo::ui::ViewInspector> inspector,
+ const ConnectCallback& callback) override;
+
+ void ConnectToViewService(
+ mojo::ui::ViewTokenPtr view_token,
+ const mojo::String& service_name,
+ mojo::ScopedMessagePipeHandle client_handle) override;
+
+ void ConnectToViewTreeService(
+ mojo::ui::ViewTreeTokenPtr view_tree_token,
+ const mojo::String& service_name,
+ mojo::ScopedMessagePipeHandle client_handle) override;
+
+ int connect_invokecount = 0;
+};
+
+} // namespace test
+} // namespace view_manager
« 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