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

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

Issue 980973003: apmanager: Add dbus implementation to chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change struct into class 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
« no previous file with comments | « chromeos/dbus/dbus_thread_manager.cc ('k') | chromeos/dbus/fake_ap_manager_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_AP_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_AP_MANAGER_CLIENT_H_
7
8 #include <map>
9 #include <string>
10 #include <vector>
11
12 #include "chromeos/dbus/ap_manager_client.h"
13
14 namespace chromeos {
15
16 // A fake implementation of ApManagerClient. Invokes callbacks
17 // immediately.
18 class FakeApManagerClient : public ApManagerClient {
19 public:
20 FakeApManagerClient();
21 ~FakeApManagerClient() override;
22
23 // DBusClient overrides:
24 void Init(dbus::Bus* bus) override;
25
26 // ApManagerClient overrides:
27 void AddObserver(Observer* observer) override;
28 void RemoveObserver(Observer* observer) override;
29 void CreateService(const ObjectPathDBusMethodCallback& callback) override;
30 void RemoveService(const dbus::ObjectPath& object_path,
31 const VoidDBusMethodCallback& callback) override;
32 void StartService(const dbus::ObjectPath& object_path,
33 const VoidDBusMethodCallback& callback) override;
34 void StopService(const dbus::ObjectPath& object_path,
35 const VoidDBusMethodCallback& callback) override;
36 ConfigProperties* GetConfigProperties(
37 const dbus::ObjectPath& object_path) override;
38 const DeviceProperties* GetDeviceProperties(
39 const dbus::ObjectPath& object_path) override;
40 const ServiceProperties* GetServiceProperties(
41 const dbus::ObjectPath& object_path) override;
42
43 private:
44 DISALLOW_COPY_AND_ASSIGN(FakeApManagerClient);
45 };
46
47 } // namespace chromeos
48
49 #endif // CHROMEOS_DBUS_FAKE_AP_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/dbus_thread_manager.cc ('k') | chromeos/dbus/fake_ap_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698