Roll src/third_party/WebKit 75a2fa9:2546356 (svn 202272:202273)
[chromium-blink-merge.git] / chromeos / dbus / fake_lorgnette_manager_client.cc
blob16427bbfba2b50f1db8d6a3606aa15ee1359481a
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/single_thread_task_runner.h"
15 #include "base/thread_task_runner_handle.h"
17 namespace chromeos {
19 FakeLorgnetteManagerClient::FakeLorgnetteManagerClient() {}
21 FakeLorgnetteManagerClient::~FakeLorgnetteManagerClient() {}
23 void FakeLorgnetteManagerClient::Init(dbus::Bus* bus) {}
25 void FakeLorgnetteManagerClient::ListScanners(
26 const ListScannersCallback& callback) {
27 std::map<std::string, ScannerTableEntry> scanners;
28 base::ThreadTaskRunnerHandle::Get()->PostTask(
29 FROM_HERE, base::Bind(callback, false, scanners));
32 void FakeLorgnetteManagerClient::ScanImageToFile(
33 std::string device_name,
34 const ScanProperties& properties,
35 const ScanImageToFileCallback& callback,
36 base::File* file) {
37 base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
38 base::Bind(callback, false));
41 void FakeLorgnetteManagerClient::ScanImageToString(
42 std::string device_name,
43 const ScanProperties& properties,
44 const ScanImageToStringCallback& callback) {
45 base::ThreadTaskRunnerHandle::Get()->PostTask(
46 FROM_HERE, base::Bind(callback, false, std::string()));
49 } // namespace chromeos