Rotate vk display 180 for easier experiment
[chromium-blink-merge.git] / chromeos / dbus / fake_nfc_adapter_client.cc
blobf9b1688eafafc463419966d5e4640319890d2525
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_adapter_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
12 // layer.
14 namespace chromeos {
16 FakeNfcAdapterClient::Properties::Properties(
17 const PropertyChangedCallback& callback)
18 : NfcAdapterClient::Properties(NULL, callback) {
21 FakeNfcAdapterClient::Properties::~Properties() {
24 void FakeNfcAdapterClient::Properties::Get(
25 dbus::PropertyBase* property,
26 dbus::PropertySet::GetCallback callback) {
27 VLOG(1) << "Get " << property->name();
28 callback.Run(false);
31 void FakeNfcAdapterClient::Properties::GetAll() {
32 VLOG(1) << "GetAll";
35 void FakeNfcAdapterClient::Properties::Set(
36 dbus::PropertyBase* property,
37 dbus::PropertySet::SetCallback callback) {
38 VLOG(1) << "Set " << property->name();
39 callback.Run(false);
42 FakeNfcAdapterClient::FakeNfcAdapterClient() {
43 VLOG(1) << "Creating FakeNfcAdapterClient";
46 FakeNfcAdapterClient::~FakeNfcAdapterClient() {
49 void FakeNfcAdapterClient::Init(dbus::Bus* bus) {
52 void FakeNfcAdapterClient::AddObserver(Observer* observer) {
55 void FakeNfcAdapterClient::RemoveObserver(Observer* observer) {
58 FakeNfcAdapterClient::Properties*
59 FakeNfcAdapterClient::GetProperties(const dbus::ObjectPath& object_path) {
60 return NULL;
63 void FakeNfcAdapterClient::StartPollLoop(
64 const dbus::ObjectPath& object_path,
65 const std::string& mode,
66 const base::Closure& callback,
67 const nfc_client_helpers::ErrorCallback& error_callback) {
68 VLOG(1) << "FakeNfcAdapterClient::StartPollLoop called. Nothing happened.";
71 void FakeNfcAdapterClient::StopPollLoop(
72 const dbus::ObjectPath& object_path,
73 const base::Closure& callback,
74 const nfc_client_helpers::ErrorCallback& error_callback) {
75 VLOG(1) << "FakeNfcAdapterClient::StopPollLoop called. Nothing happened.";
78 } // namespace chromeos