blob: 0fd3a161e14bc0190bc0907f00861ff92bcdf288 [file] [log] [blame]
// Copyright 2018 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_DEMO_PREFERENCES_SCREEN_H_
#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_DEMO_PREFERENCES_SCREEN_H_
#include <string>
#include "base/macros.h"
#include "chrome/browser/chromeos/login/screens/demo_preferences_screen.h"
#include "chrome/browser/ui/webui/chromeos/login/demo_preferences_screen_handler.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace chromeos {
class MockDemoPreferencesScreen : public DemoPreferencesScreen {
public:
MockDemoPreferencesScreen(DemoPreferencesScreenView* view,
const ScreenExitCallback& exit_callback);
~MockDemoPreferencesScreen() override;
MOCK_METHOD0(Show, void());
MOCK_METHOD0(Hide, void());
void ExitScreen(Result result);
private:
DISALLOW_COPY_AND_ASSIGN(MockDemoPreferencesScreen);
};
class MockDemoPreferencesScreenView : public DemoPreferencesScreenView {
public:
MockDemoPreferencesScreenView();
~MockDemoPreferencesScreenView() override;
MOCK_METHOD0(Show, void());
MOCK_METHOD0(Hide, void());
MOCK_METHOD1(MockBind, void(DemoPreferencesScreen* screen));
MOCK_METHOD1(SetInputMethodId, void(const std::string& input_method));
void Bind(DemoPreferencesScreen* screen) override;
private:
DemoPreferencesScreen* screen_ = nullptr;
DISALLOW_COPY_AND_ASSIGN(MockDemoPreferencesScreenView);
};
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_DEMO_PREFERENCES_SCREEN_H_