Don't preload rarely seen large images
[chromium-blink-merge.git] / chromeos / dbus / fake_privet_daemon_manager_client.h
blobf8d219c99598b91ba590c07dae50c0d4cf576448
1 // Copyright 2015 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 #ifndef CHROMEOS_DBUS_FAKE_PRIVET_DAEMON_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_PRIVET_DAEMON_MANAGER_CLIENT_H_
8 #include "chromeos/dbus/privet_daemon_manager_client.h"
10 namespace chromeos {
12 // A fake implementation of PrivetDaemonManagerClient. Invokes callbacks
13 // immediately.
14 class FakePrivetDaemonManagerClient : public PrivetDaemonManagerClient {
15 public:
16 FakePrivetDaemonManagerClient();
17 ~FakePrivetDaemonManagerClient() override;
19 // DBusClient overrides:
20 void Init(dbus::Bus* bus) override;
22 // PrivetDaemonManagerClient overrides:
23 void AddObserver(Observer* observer) override;
24 void RemoveObserver(Observer* observer) override;
25 void SetDescription(const std::string& description,
26 const VoidDBusMethodCallback& callback) override;
27 const Properties* GetProperties() override;
29 private:
30 DISALLOW_COPY_AND_ASSIGN(FakePrivetDaemonManagerClient);
33 } // namespace chromeos
35 #endif // CHROMEOS_DBUS_FAKE_PRIVET_DAEMON_MANAGER_CLIENT_H_