Home | History | Annotate | Download | only in dbus
      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.
      4 
      5 #include "chromeos/dbus/fake_lorgnette_manager_client.h"
      6 
      7 #include <map>
      8 #include <string>
      9 #include <vector>
     10 
     11 #include "base/bind.h"
     12 #include "base/callback.h"
     13 #include "base/location.h"
     14 #include "base/message_loop/message_loop.h"
     15 
     16 namespace chromeos {
     17 
     18 FakeLorgnetteManagerClient::FakeLorgnetteManagerClient() {}
     19 
     20 FakeLorgnetteManagerClient::~FakeLorgnetteManagerClient() {}
     21 
     22 void FakeLorgnetteManagerClient::Init(dbus::Bus* bus) {}
     23 
     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));
     29 }
     30 
     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));
     38 }
     39 
     40 }  // namespace chromeos
     41