Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Side by Side Diff: chromeos/dbus/fake_privet_daemon_manager_client.h

Issue 996013003: privetd: Expose dbus API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698