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.
5 #include "chromeos/dbus/fake_peer_daemon_manager_client.h"
9 FakePeerDaemonManagerClient::FakePeerDaemonManagerClient() {
12 FakePeerDaemonManagerClient::~FakePeerDaemonManagerClient() {
15 void FakePeerDaemonManagerClient::Init(dbus::Bus
* bus
) {
18 void FakePeerDaemonManagerClient::StartMonitoring(
19 const std::vector
<std::string
>& requested_technologies
,
20 const base::DictionaryValue
& options
,
21 const StringDBusMethodCallback
& callback
) {
22 callback
.Run(DBUS_METHOD_CALL_SUCCESS
, "");
25 void FakePeerDaemonManagerClient::StopMonitoring(
26 const std::string
& monitoring_token
,
27 const VoidDBusMethodCallback
& callback
) {
28 callback
.Run(DBUS_METHOD_CALL_SUCCESS
);
31 void FakePeerDaemonManagerClient::ExposeService(
32 const std::string
& service_id
,
33 const std::map
<std::string
, std::string
>& service_info
,
34 const base::DictionaryValue
& options
,
35 const StringDBusMethodCallback
& callback
) {
36 callback
.Run(DBUS_METHOD_CALL_SUCCESS
, "");
39 void FakePeerDaemonManagerClient::RemoveExposedService(
40 const std::string
& service_token
,
41 const VoidDBusMethodCallback
& callback
) {
42 callback
.Run(DBUS_METHOD_CALL_SUCCESS
);
45 void FakePeerDaemonManagerClient::Ping(
46 const StringDBusMethodCallback
& callback
) {
47 callback
.Run(DBUS_METHOD_CALL_SUCCESS
, "");
50 } // namespace chromeos