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

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

Issue 2858353002: MediaPerceptionPrivate API impl and testing. (Closed)
Patch Set: Addressed comments (added TestUpstartClient). Created 3 years, 7 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMEOS_DBUS_FAKE_UPSTART_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_UPSTART_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_UPSTART_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_UPSTART_CLIENT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9
10 #include "chromeos/dbus/upstart_client.h" 9 #include "chromeos/dbus/upstart_client.h"
11 10
12 namespace chromeos { 11 namespace chromeos {
13 12
14 class CHROMEOS_EXPORT FakeUpstartClient : public UpstartClient { 13 class CHROMEOS_EXPORT FakeUpstartClient : public UpstartClient {
15 public: 14 public:
16 FakeUpstartClient(); 15 FakeUpstartClient();
17 ~FakeUpstartClient() override; 16 ~FakeUpstartClient() override;
18 17
19 // DBusClient overrides. 18 // DBusClient overrides.
20 void Init(dbus::Bus* bus) override; 19 void Init(dbus::Bus* bus) override;
21 20
22 // UpstartClient overrides. 21 // UpstartClient overrides.
23 void StartAuthPolicyService() override; 22 void StartAuthPolicyService() override;
24 void RestartAuthPolicyService() override; 23 void RestartAuthPolicyService() override;
25 void StartMediaAnalytics(const UpstartCallback& callback) override; 24 void StartMediaAnalytics(const UpstartCallback& callback) override;
26 void StopMediaAnalytics() override; 25 void StopMediaAnalytics() override;
27 26
28 private:
tbarzic 2017/05/18 21:39:15 keep this
Luke Sorenson 2017/05/19 00:56:43 Done.
29 DISALLOW_COPY_AND_ASSIGN(FakeUpstartClient); 27 DISALLOW_COPY_AND_ASSIGN(FakeUpstartClient);
30 }; 28 };
31 29
32 } // namespace chromeos 30 } // namespace chromeos
33 31
34 #endif // CHROMEOS_DBUS_FAKE_UPSTART_CLIENT_H_ 32 #endif // CHROMEOS_DBUS_FAKE_UPSTART_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698