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

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

Issue 167663004: chromeos: Remove old LockScreen signal. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: bleh Created 6 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 | Annotate | Revision Log
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 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "chromeos/dbus/session_manager_client.h" 14 #include "chromeos/dbus/session_manager_client.h"
15 15
16 namespace chromeos { 16 namespace chromeos {
17 17
18 // A fake implementation of session_manager. Accepts policy blobs to be set and 18 // A fake implementation of session_manager. Accepts policy blobs to be set and
19 // returns them unmodified. 19 // returns them unmodified.
20 class FakeSessionManagerClient : public SessionManagerClient { 20 class FakeSessionManagerClient : public SessionManagerClient {
21 public: 21 public:
22 FakeSessionManagerClient(); 22 FakeSessionManagerClient();
23 virtual ~FakeSessionManagerClient(); 23 virtual ~FakeSessionManagerClient();
24 24
25 // SessionManagerClient overrides 25 // SessionManagerClient overrides
26 virtual void Init(dbus::Bus* bus) OVERRIDE; 26 virtual void Init(dbus::Bus* bus) OVERRIDE;
27 virtual void SetStubDelegate(StubDelegate* delegate) OVERRIDE;
27 virtual void AddObserver(Observer* observer) OVERRIDE; 28 virtual void AddObserver(Observer* observer) OVERRIDE;
28 virtual void RemoveObserver(Observer* observer) OVERRIDE; 29 virtual void RemoveObserver(Observer* observer) OVERRIDE;
29 virtual bool HasObserver(Observer* observer) OVERRIDE; 30 virtual bool HasObserver(Observer* observer) OVERRIDE;
30 virtual void EmitLoginPromptVisible() OVERRIDE; 31 virtual void EmitLoginPromptVisible() OVERRIDE;
31 virtual void RestartJob(int pid, const std::string& command_line) OVERRIDE; 32 virtual void RestartJob(int pid, const std::string& command_line) OVERRIDE;
32 virtual void StartSession(const std::string& user_email) OVERRIDE; 33 virtual void StartSession(const std::string& user_email) OVERRIDE;
33 virtual void StopSession() OVERRIDE; 34 virtual void StopSession() OVERRIDE;
34 virtual void StartDeviceWipe() OVERRIDE; 35 virtual void StartDeviceWipe() OVERRIDE;
35 virtual void RequestLockScreen() OVERRIDE; 36 virtual void RequestLockScreen() OVERRIDE;
36 virtual void NotifyLockScreenShown() OVERRIDE; 37 virtual void NotifyLockScreenShown() OVERRIDE;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 int start_device_wipe_call_count_; 100 int start_device_wipe_call_count_;
100 int notify_lock_screen_shown_call_count_; 101 int notify_lock_screen_shown_call_count_;
101 int notify_lock_screen_dismissed_call_count_; 102 int notify_lock_screen_dismissed_call_count_;
102 103
103 DISALLOW_COPY_AND_ASSIGN(FakeSessionManagerClient); 104 DISALLOW_COPY_AND_ASSIGN(FakeSessionManagerClient);
104 }; 105 };
105 106
106 } // namespace chromeos 107 } // namespace chromeos
107 108
108 #endif // CHROMEOS_DBUS_FAKE_SESSION_MANAGER_CLIENT_H_ 109 #endif // CHROMEOS_DBUS_FAKE_SESSION_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/settings/device_settings_test_helper.cc ('k') | chromeos/dbus/fake_session_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698