Update V8 to version 4.6.54.
[chromium-blink-merge.git] / chromeos / dbus / mock_session_manager_client.h
blob17f0caf56512bdd85547165a330fb60979b2606c
1 // Copyright (c) 2012 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.
5 #ifndef CHROMEOS_DBUS_MOCK_SESSION_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_MOCK_SESSION_MANAGER_CLIENT_H_
8 #include <string>
10 #include "chromeos/dbus/session_manager_client.h"
11 #include "testing/gmock/include/gmock/gmock.h"
13 namespace chromeos {
15 class MockSessionManagerClient : public SessionManagerClient {
16 public:
17 MockSessionManagerClient();
18 virtual ~MockSessionManagerClient();
20 MOCK_METHOD1(Init, void(dbus::Bus* bus));
21 MOCK_METHOD1(SetStubDelegate, void(StubDelegate* delegate));
22 MOCK_METHOD1(AddObserver, void(Observer*));
23 MOCK_METHOD1(RemoveObserver, void(Observer*));
24 MOCK_CONST_METHOD1(HasObserver, bool(const Observer*));
25 MOCK_CONST_METHOD0(IsScreenLocked, bool(void));
26 MOCK_METHOD0(EmitLoginPromptVisible, void(void));
27 MOCK_METHOD1(RestartJob, void(const std::vector<std::string>&));
28 MOCK_METHOD1(StartSession, void(const std::string&));
29 MOCK_METHOD0(StopSession, void(void));
30 MOCK_METHOD0(NotifySupervisedUserCreationStarted, void(void));
31 MOCK_METHOD0(NotifySupervisedUserCreationFinished, void(void));
32 MOCK_METHOD0(StartDeviceWipe, void(void));
33 MOCK_METHOD0(RequestLockScreen, void(void));
34 MOCK_METHOD0(NotifyLockScreenShown, void(void));
35 MOCK_METHOD0(NotifyLockScreenDismissed, void(void));
36 MOCK_METHOD1(RetrieveActiveSessions, void(const ActiveSessionsCallback&));
37 MOCK_METHOD1(RetrieveDevicePolicy, void(const RetrievePolicyCallback&));
38 MOCK_METHOD2(RetrievePolicyForUser,
39 void(const std::string&,
40 const RetrievePolicyCallback&));
41 MOCK_METHOD1(BlockingRetrievePolicyForUser, std::string(const std::string&));
42 MOCK_METHOD2(RetrieveDeviceLocalAccountPolicy,
43 void(const std::string&,
44 const RetrievePolicyCallback&));
45 MOCK_METHOD2(StoreDevicePolicy,
46 void(const std::string&,
47 const StorePolicyCallback&));
48 MOCK_METHOD3(StorePolicyForUser,
49 void(const std::string&,
50 const std::string&,
51 const StorePolicyCallback&));
52 MOCK_METHOD3(StoreDeviceLocalAccountPolicy,
53 void(const std::string&,
54 const std::string&,
55 const StorePolicyCallback&));
56 MOCK_METHOD2(SetFlagsForUser,
57 void(const std::string&,
58 const std::vector<std::string>&));
59 MOCK_METHOD1(GetServerBackedStateKeys, void(const StateKeysCallback&));
62 } // namespace chromeos
64 #endif // CHROMEOS_DBUS_MOCK_SESSION_MANAGER_CLIENT_H_