| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chromeos/dbus/fake_peer_daemon_manager_client.h" | 5 #include "chromeos/dbus/fake_peer_daemon_manager_client.h" |
| 6 | 6 |
| 7 namespace chromeos { | 7 namespace chromeos { |
| 8 | 8 |
| 9 FakePeerDaemonManagerClient::FakePeerDaemonManagerClient() { | 9 FakePeerDaemonManagerClient::FakePeerDaemonManagerClient() { |
| 10 } | 10 } |
| 11 | 11 |
| 12 FakePeerDaemonManagerClient::~FakePeerDaemonManagerClient() { | 12 FakePeerDaemonManagerClient::~FakePeerDaemonManagerClient() { |
| 13 } | 13 } |
| 14 | 14 |
| 15 void FakePeerDaemonManagerClient::Init(dbus::Bus* bus) { | 15 void FakePeerDaemonManagerClient::Init(dbus::Bus* bus) { |
| 16 } | 16 } |
| 17 | 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 |
| 18 void FakePeerDaemonManagerClient::StartMonitoring( | 44 void FakePeerDaemonManagerClient::StartMonitoring( |
| 19 const std::vector<std::string>& requested_technologies, | 45 const std::vector<std::string>& requested_technologies, |
| 20 const base::DictionaryValue& options, | 46 const base::DictionaryValue& options, |
| 21 const StringDBusMethodCallback& callback) { | 47 const StringDBusMethodCallback& callback) { |
| 22 callback.Run(DBUS_METHOD_CALL_SUCCESS, ""); | 48 callback.Run(DBUS_METHOD_CALL_SUCCESS, ""); |
| 23 } | 49 } |
| 24 | 50 |
| 25 void FakePeerDaemonManagerClient::StopMonitoring( | 51 void FakePeerDaemonManagerClient::StopMonitoring( |
| 26 const std::string& monitoring_token, | 52 const std::string& monitoring_token, |
| 27 const VoidDBusMethodCallback& callback) { | 53 const VoidDBusMethodCallback& callback) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 41 const VoidDBusMethodCallback& callback) { | 67 const VoidDBusMethodCallback& callback) { |
| 42 callback.Run(DBUS_METHOD_CALL_SUCCESS); | 68 callback.Run(DBUS_METHOD_CALL_SUCCESS); |
| 43 } | 69 } |
| 44 | 70 |
| 45 void FakePeerDaemonManagerClient::Ping( | 71 void FakePeerDaemonManagerClient::Ping( |
| 46 const StringDBusMethodCallback& callback) { | 72 const StringDBusMethodCallback& callback) { |
| 47 callback.Run(DBUS_METHOD_CALL_SUCCESS, ""); | 73 callback.Run(DBUS_METHOD_CALL_SUCCESS, ""); |
| 48 } | 74 } |
| 49 | 75 |
| 50 } // namespace chromeos | 76 } // namespace chromeos |
| OLD | NEW |