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"
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"
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
,
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