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.
5 #include "chromeos/dbus/fake_nfc_tag_client.h"
7 #include "base/logging.h"
8 #include "dbus/object_path.h"
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
16 FakeNfcTagClient::Properties::Properties(
17 const PropertyChangedCallback& callback)
18 : NfcTagClient::Properties(NULL, callback) {
21 FakeNfcTagClient::Properties::~Properties() {
24 void FakeNfcTagClient::Properties::Get(
25 dbus::PropertyBase* property,
26 dbus::PropertySet::GetCallback callback) {
27 VLOG(1) << "Get " << property->name();
31 void FakeNfcTagClient::Properties::GetAll() {
35 void FakeNfcTagClient::Properties::Set(
36 dbus::PropertyBase* property,
37 dbus::PropertySet::SetCallback callback) {
38 VLOG(1) << "Set " << property->name();
42 FakeNfcTagClient::FakeNfcTagClient() {
43 VLOG(1) << "Creating FakeNfcTagClient";
46 FakeNfcTagClient::~FakeNfcTagClient() {
49 void FakeNfcTagClient::Init(dbus::Bus* bus) {
52 void FakeNfcTagClient::AddObserver(Observer* observer) {
55 void FakeNfcTagClient::RemoveObserver(Observer* observer) {
58 FakeNfcTagClient::Properties*
59 FakeNfcTagClient::GetProperties(const dbus::ObjectPath& object_path) {
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.";
71 } // namespace chromeos