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

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

Issue 697953002: ObserverList::HasObserver now takes a const pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile errors (ChromeOS unit tests). Created 6 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SESSION_MANAGER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_SESSION_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_SESSION_MANAGER_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_SESSION_MANAGER_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 10 matching lines...) Expand all
21 class FakeSessionManagerClient : public SessionManagerClient { 21 class FakeSessionManagerClient : public SessionManagerClient {
22 public: 22 public:
23 FakeSessionManagerClient(); 23 FakeSessionManagerClient();
24 virtual ~FakeSessionManagerClient(); 24 virtual ~FakeSessionManagerClient();
25 25
26 // SessionManagerClient overrides 26 // SessionManagerClient overrides
27 virtual void Init(dbus::Bus* bus) override; 27 virtual void Init(dbus::Bus* bus) override;
28 virtual void SetStubDelegate(StubDelegate* delegate) override; 28 virtual void SetStubDelegate(StubDelegate* delegate) override;
29 virtual void AddObserver(Observer* observer) override; 29 virtual void AddObserver(Observer* observer) override;
30 virtual void RemoveObserver(Observer* observer) override; 30 virtual void RemoveObserver(Observer* observer) override;
31 virtual bool HasObserver(Observer* observer) override; 31 virtual bool HasObserver(const Observer* observer) const override;
32 virtual void EmitLoginPromptVisible() override; 32 virtual void EmitLoginPromptVisible() override;
33 virtual void RestartJob(int pid, const std::string& command_line) override; 33 virtual void RestartJob(int pid, const std::string& command_line) override;
34 virtual void StartSession(const std::string& user_email) override; 34 virtual void StartSession(const std::string& user_email) override;
35 virtual void StopSession() override; 35 virtual void StopSession() override;
36 virtual void StartDeviceWipe() override; 36 virtual void StartDeviceWipe() override;
37 virtual void RequestLockScreen() override; 37 virtual void RequestLockScreen() override;
38 virtual void NotifyLockScreenShown() override; 38 virtual void NotifyLockScreenShown() override;
39 virtual void NotifyLockScreenDismissed() override; 39 virtual void NotifyLockScreenDismissed() override;
40 virtual void RetrieveActiveSessions( 40 virtual void RetrieveActiveSessions(
41 const ActiveSessionsCallback& callback) override; 41 const ActiveSessionsCallback& callback) override;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 int start_device_wipe_call_count_; 110 int start_device_wipe_call_count_;
111 int notify_lock_screen_shown_call_count_; 111 int notify_lock_screen_shown_call_count_;
112 int notify_lock_screen_dismissed_call_count_; 112 int notify_lock_screen_dismissed_call_count_;
113 113
114 DISALLOW_COPY_AND_ASSIGN(FakeSessionManagerClient); 114 DISALLOW_COPY_AND_ASSIGN(FakeSessionManagerClient);
115 }; 115 };
116 116
117 } // namespace chromeos 117 } // namespace chromeos
118 118
119 #endif // CHROMEOS_DBUS_FAKE_SESSION_MANAGER_CLIENT_H_ 119 #endif // CHROMEOS_DBUS_FAKE_SESSION_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_power_manager_client.cc ('k') | chromeos/dbus/fake_session_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698