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

Unified 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: tiny bit more cleanup 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
Index: services/ui/view_manager/tests/mock_view_associate.cc
diff --git a/services/ui/view_manager/tests/mock_view_associate.cc b/services/ui/view_manager/tests/mock_view_associate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..4c464bf7ccefc21ca42cd400c9e0960da752a718
--- /dev/null
+++ b/services/ui/view_manager/tests/mock_view_associate.cc
@@ -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 "services/ui/view_manager/tests/mock_view_associate.h"
+
+namespace view_manager {
+namespace test {
+
+MockViewAssociate::MockViewAssociate() {}
+MockViewAssociate::~MockViewAssociate() {}
+
+void MockViewAssociate::Connect(
+ mojo::InterfaceHandle<mojo::ui::ViewInspector> inspector,
+ const ConnectCallback& callback) {
+ connect_invokecount++;
+
+ auto info = mojo::ui::ViewAssociateInfo::New();
+ callback.Run(info.Pass());
+}
+
+void MockViewAssociate::ConnectToViewService(
+ mojo::ui::ViewTokenPtr view_token,
+ const mojo::String& service_name,
+ mojo::ScopedMessagePipeHandle client_handle) {}
+
+void MockViewAssociate::ConnectToViewTreeService(
+ mojo::ui::ViewTreeTokenPtr view_tree_token,
+ const mojo::String& service_name,
+ mojo::ScopedMessagePipeHandle client_handle) {}
+
+} // namespace test
+} // namespace view_manager

Powered by Google App Engine
This is Rietveld 408576698