| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 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 "chromeos/dbus/fake_peer_daemon_manager_client.h" | |
| 6 | |
| 7 namespace chromeos { | |
| 8 | |
| 9 FakePeerDaemonManagerClient::FakePeerDaemonManagerClient() { | |
| 10 } | |
| 11 | |
| 12 FakePeerDaemonManagerClient::~FakePeerDaemonManagerClient() { | |
| 13 } | |
| 14 | |
| 15 void FakePeerDaemonManagerClient::Init(dbus::Bus* bus) { | |
| 16 } | |
| 17 | |
| 18 void FakePeerDaemonManagerClient::AddObserver(Observer* observer) { | |
| 19 } | |
| 20 | |
| 21 void FakePeerDaemonManagerClient::RemoveObserver(Observer* observer) { | |
| 22 } | |
| 23 | |
| 24 std::vector<dbus::ObjectPath> FakePeerDaemonManagerClient::GetPeers() { | |
| 25 return std::vector<dbus::ObjectPath>(); | |
| 26 } | |
| 27 | |
| 28 std::vector<dbus::ObjectPath> FakePeerDaemonManagerClient::GetServices() { | |
| 29 return std::vector<dbus::ObjectPath>(); | |
| 30 } | |
| 31 | |
| 32 PeerDaemonManagerClient::PeerProperties* | |
| 33 FakePeerDaemonManagerClient::GetPeerProperties( | |
| 34 const dbus::ObjectPath& object_path) { | |
| 35 return nullptr; | |
| 36 } | |
| 37 | |
| 38 PeerDaemonManagerClient::ServiceProperties* | |
| 39 FakePeerDaemonManagerClient::GetServiceProperties( | |
| 40 const dbus::ObjectPath& object_path) { | |
| 41 return nullptr; | |
| 42 } | |
| 43 | |
| 44 void FakePeerDaemonManagerClient::StartMonitoring( | |
| 45 const std::vector<std::string>& requested_technologies, | |
| 46 const base::DictionaryValue& options, | |
| 47 const StringDBusMethodCallback& callback) { | |
| 48 callback.Run(DBUS_METHOD_CALL_SUCCESS, ""); | |
| 49 } | |
| 50 | |
| 51 void FakePeerDaemonManagerClient::StopMonitoring( | |
| 52 const std::string& monitoring_token, | |
| 53 const VoidDBusMethodCallback& callback) { | |
| 54 callback.Run(DBUS_METHOD_CALL_SUCCESS); | |
| 55 } | |
| 56 | |
| 57 void FakePeerDaemonManagerClient::ExposeService( | |
| 58 const std::string& service_id, | |
| 59 const std::map<std::string, std::string>& service_info, | |
| 60 const base::DictionaryValue& options, | |
| 61 const StringDBusMethodCallback& callback) { | |
| 62 callback.Run(DBUS_METHOD_CALL_SUCCESS, ""); | |
| 63 } | |
| 64 | |
| 65 void FakePeerDaemonManagerClient::RemoveExposedService( | |
| 66 const std::string& service_token, | |
| 67 const VoidDBusMethodCallback& callback) { | |
| 68 callback.Run(DBUS_METHOD_CALL_SUCCESS); | |
| 69 } | |
| 70 | |
| 71 void FakePeerDaemonManagerClient::Ping( | |
| 72 const StringDBusMethodCallback& callback) { | |
| 73 callback.Run(DBUS_METHOD_CALL_SUCCESS, ""); | |
| 74 } | |
| 75 | |
| 76 } // namespace chromeos | |
| OLD | NEW |