- add sources.
[platform/framework/web/crosswalk.git] / src / chromeos / dbus / fake_nfc_tag_client.cc
1 // Copyright 2013 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_nfc_tag_client.h"
6
7 #include "base/logging.h"
8 #include "dbus/object_path.h"
9
10 // TODO(armansito): For now, this class doesn't do anything. Implement fake
11 // behavior in conjunction with unit tests while implementing the src/device
12 // layer.
13
14 namespace chromeos {
15
16 FakeNfcTagClient::Properties::Properties(
17     const PropertyChangedCallback& callback)
18     : NfcTagClient::Properties(NULL, callback) {
19 }
20
21 FakeNfcTagClient::Properties::~Properties() {
22 }
23
24 void FakeNfcTagClient::Properties::Get(
25     dbus::PropertyBase* property,
26     dbus::PropertySet::GetCallback callback) {
27   VLOG(1) << "Get " << property->name();
28   callback.Run(false);
29 }
30
31 void FakeNfcTagClient::Properties::GetAll() {
32   VLOG(1) << "GetAll";
33 }
34
35 void FakeNfcTagClient::Properties::Set(
36     dbus::PropertyBase* property,
37     dbus::PropertySet::SetCallback callback) {
38   VLOG(1) << "Set " << property->name();
39   callback.Run(false);
40 }
41
42 FakeNfcTagClient::FakeNfcTagClient() {
43   VLOG(1) << "Creating FakeNfcTagClient";
44 }
45
46 FakeNfcTagClient::~FakeNfcTagClient() {
47 }
48
49 void FakeNfcTagClient::Init(dbus::Bus* bus) {
50 }
51
52 void FakeNfcTagClient::AddObserver(Observer* observer) {
53 }
54
55 void FakeNfcTagClient::RemoveObserver(Observer* observer) {
56 }
57
58 FakeNfcTagClient::Properties*
59 FakeNfcTagClient::GetProperties(const dbus::ObjectPath& object_path) {
60   return NULL;
61 }
62
63 void FakeNfcTagClient::Write(
64     const dbus::ObjectPath& object_path,
65     const std::map<std::string, std::string>& attributes,
66     const base::Closure& callback,
67     const nfc_client_helpers::ErrorCallback& error_callback) {
68   VLOG(1) << "FakeNfcTagClient::Write called. Nothing happened.";
69 }
70
71 }  // namespace chromeos