OLD | NEW |
(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 |
OLD | NEW |