// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROMEOS_DBUS_MOCK_SESSION_MANAGER_CLIENT_H_ #define CHROMEOS_DBUS_MOCK_SESSION_MANAGER_CLIENT_H_ #include #include "chromeos/dbus/session_manager_client.h" #include "testing/gmock/include/gmock/gmock.h" namespace chromeos { class MockSessionManagerClient : public SessionManagerClient { public: MockSessionManagerClient(); virtual ~MockSessionManagerClient(); MOCK_METHOD1(AddObserver, void(Observer*)); MOCK_METHOD1(RemoveObserver, void(Observer*)); MOCK_METHOD0(EmitLoginPromptReady, void(void)); MOCK_METHOD0(EmitLoginPromptVisible, void(void)); MOCK_METHOD0(RestartEntd, void(void)); MOCK_METHOD2(RestartJob, void(int, const std::string&)); MOCK_METHOD1(StartSession, void(const std::string&)); MOCK_METHOD0(StopSession, void(void)); MOCK_METHOD1(RetrieveDevicePolicy, void(const RetrievePolicyCallback&)); MOCK_METHOD1(RetrieveUserPolicy, void(const RetrievePolicyCallback&)); MOCK_METHOD2(StoreDevicePolicy, void(const std::string&, const StorePolicyCallback&)); MOCK_METHOD2(StoreUserPolicy, void(const std::string&, const StorePolicyCallback&)); }; } // namespace chromeos #endif // CHROMEOS_DBUS_MOCK_SESSION_MANAGER_CLIENT_H_