blob: db3f0a629a4e9e629e4459d93100402bc8ba8f0e [file] [log] [blame]
// Copyright 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_WELCOME_SCREEN_H_
#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_WELCOME_SCREEN_H_
#include "base/macros.h"
#include "chrome/browser/chromeos/login/screens/welcome_screen.h"
#include "chrome/browser/chromeos/login/screens/welcome_view.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace chromeos {
class MockWelcomeScreen : public WelcomeScreen {
public:
MockWelcomeScreen(BaseScreenDelegate* base_screen_delegate,
Delegate* delegate,
WelcomeView* view);
~MockWelcomeScreen() override;
MOCK_METHOD0(Show, void());
MOCK_METHOD0(Hide, void());
MOCK_METHOD2(SetConfiguration, void(base::Value* configuration, bool notify));
private:
DISALLOW_COPY_AND_ASSIGN(MockWelcomeScreen);
};
class MockWelcomeView : public WelcomeView {
public:
MockWelcomeView();
~MockWelcomeView() override;
void Bind(WelcomeScreen* screen) override;
void Unbind() override;
MOCK_METHOD1(MockBind, void(WelcomeScreen* screen));
MOCK_METHOD0(MockUnbind, void());
MOCK_METHOD0(Show, void());
MOCK_METHOD0(Hide, void());
MOCK_METHOD0(StopDemoModeDetection, void());
MOCK_METHOD0(ReloadLocalizedContent, void());
private:
WelcomeScreen* screen_ = nullptr;
DISALLOW_COPY_AND_ASSIGN(MockWelcomeView);
};
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_WELCOME_SCREEN_H_