bluetooth: Shutdown BluetoothAdapter before DBus on ChromeOS.
[chromium-blink-merge.git] / chromeos / dbus / fake_lorgnette_manager_client.cc
blob3487ea4f6ea6f43c5fc3fa6b38c6f9c633308a6f
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_lorgnette_manager_client.h"
7 #include <map>
8 #include <string>
9 #include <vector>
11 #include "base/bind.h"
12 #include "base/callback.h"
13 #include "base/location.h"
14 #include "base/message_loop/message_loop.h"
16 namespace chromeos {
18 FakeLorgnetteManagerClient::FakeLorgnetteManagerClient() {}
20 FakeLorgnetteManagerClient::~FakeLorgnetteManagerClient() {}
22 void FakeLorgnetteManagerClient::Init(dbus::Bus* bus) {}
24 void FakeLorgnetteManagerClient::ListScanners(
25 const ListScannersCallback& callback) {
26 std::map<std::string, ScannerTableEntry> scanners;
27 base::MessageLoop::current()->PostTask(FROM_HERE,
28 base::Bind(callback, false, scanners));
31 void FakeLorgnetteManagerClient::ScanImageToFile(
32 std::string device_name,
33 const ScanProperties& properties,
34 const ScanImageToFileCallback& callback,
35 base::File* file) {
36 base::MessageLoop::current()->PostTask(FROM_HERE,
37 base::Bind(callback, false));
40 void FakeLorgnetteManagerClient::ScanImageToString(
41 std::string device_name,
42 const ScanProperties& properties,
43 const ScanImageToStringCallback& callback) {
44 base::MessageLoop::current()->PostTask(FROM_HERE,
45 base::Bind(callback, false,
46 std::string()));
49 } // namespace chromeos