Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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. | |
| 4 | |
| 5 #ifndef CHROMEOS_DBUS_FAKE_PRIVET_DAEMON_MANAGER_CLIENT_H_ | |
| 6 #define CHROMEOS_DBUS_FAKE_PRIVET_DAEMON_MANAGER_CLIENT_H_ | |
| 7 | |
| 8 #include <map> | |
| 9 #include <string> | |
| 10 #include <vector> | |
|
wtc
2015/03/17 17:31:05
Nit: we don't need to include these headers. std::
dtapuska
2015/03/18 14:28:53
Done.
| |
| 11 | |
| 12 #include "chromeos/dbus/privet_daemon_manager_client.h" | |
| 13 | |
| 14 namespace chromeos { | |
| 15 | |
| 16 // A fake implementation of PrivetDaemonManagerClient. Invokes callbacks | |
| 17 // immediately. | |
| 18 class FakePrivetDaemonManagerClient : public PrivetDaemonManagerClient { | |
| 19 public: | |
| 20 FakePrivetDaemonManagerClient(); | |
| 21 ~FakePrivetDaemonManagerClient() override; | |
| 22 | |
| 23 // DBusClient overrides: | |
| 24 void Init(dbus::Bus* bus) override; | |
| 25 | |
| 26 // PrivetDaemonManagerClient overrides: | |
| 27 void AddObserver(Observer* observer) override; | |
| 28 void RemoveObserver(Observer* observer) override; | |
| 29 void SetDescription(const std::string& description, | |
| 30 const VoidDBusMethodCallback& callback) override; | |
| 31 const ManagerProperties* GetManagerProperties() override; | |
| 32 | |
| 33 private: | |
| 34 DISALLOW_COPY_AND_ASSIGN(FakePrivetDaemonManagerClient); | |
| 35 }; | |
| 36 | |
| 37 } // namespace chromeos | |
| 38 | |
| 39 #endif // CHROMEOS_DBUS_FAKE_PRIVET_DAEMON_MANAGER_CLIENT_H_ | |
| OLD | NEW |