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/message_loop/message_loop.h"
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::ScanImage(
32 std::string device_name
,
33 base::PlatformFile file
,
34 const ScanProperties
& properties
,
35 const ScanImageCallback
& callback
) {
36 base::MessageLoop::current()->PostTask(FROM_HERE
,
37 base::Bind(callback
, false));
40 } // namespace chromeos