blob: 3f518cb1b873406104959fba312596a4a1bfbcda [file] [log] [blame]
// 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 CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_EULA_SCREEN_H_
#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_EULA_SCREEN_H_
#include "chrome/browser/chromeos/login/screens/eula_screen.h"
#include "chrome/browser/chromeos/login/screens/eula_view.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace chromeos {
class MockEulaScreen : public EulaScreen {
public:
MockEulaScreen(EulaView* view, const ScreenExitCallback& exit_callback);
~MockEulaScreen() override;
MOCK_METHOD0(Show, void());
MOCK_METHOD0(Hide, void());
void ExitScreen(Result result);
};
class MockEulaView : public EulaView {
public:
MockEulaView();
~MockEulaView() override;
void Bind(EulaScreen* screen) override;
void Unbind() override;
MOCK_METHOD0(Show, void());
MOCK_METHOD0(Hide, void());
MOCK_METHOD1(MockBind, void(EulaScreen* screen));
MOCK_METHOD0(MockUnbind, void());
MOCK_METHOD1(OnPasswordFetched, void(const std::string& tpm_password));
private:
EulaScreen* screen_ = nullptr;
};
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_EULA_SCREEN_H_