#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_UPDATE_SCREEN_H_
#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_UPDATE_SCREEN_H_
#include "chrome/browser/chromeos/login/screens/screen_observer.h"
#include "chrome/browser/chromeos/login/screens/update_screen.h"
#include "chrome/browser/chromeos/login/screens/update_screen_actor.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace chromeos {
class MockUpdateScreen : public UpdateScreen {
public:
MockUpdateScreen(ScreenObserver* screen_observer, UpdateScreenActor* actor);
virtual ~MockUpdateScreen();
MOCK_METHOD0(StartNetworkCheck, void());
};
class MockUpdateScreenActor : public UpdateScreenActor {
public:
MockUpdateScreenActor();
virtual ~MockUpdateScreenActor();
virtual void SetDelegate(UpdateScreenActor::Delegate* screen) OVERRIDE;
MOCK_METHOD1(MockSetDelegate, void(UpdateScreenActor::Delegate* screen));
MOCK_METHOD0(Show, void());
MOCK_METHOD0(Hide, void());
MOCK_METHOD0(PrepareToShow, void());
MOCK_METHOD0(ShowManualRebootInfo, void());
MOCK_METHOD1(SetProgress, void(int progress));
MOCK_METHOD1(ShowEstimatedTimeLeft, void(bool enable));
MOCK_METHOD1(SetEstimatedTimeLeft, void(const base::TimeDelta& time));
MOCK_METHOD1(ShowProgressMessage, void(bool enable));
MOCK_METHOD1(SetProgressMessage, void(ProgressMessage message));
MOCK_METHOD1(ShowCurtain, void(bool enable));
MOCK_METHOD1(ShowPreparingUpdatesInfo, void(bool enable));
private:
UpdateScreenActor::Delegate* screen_;
};
}
#endif