1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_EULA_SCREEN_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_EULA_SCREEN_H_
8 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h"
9 #include "chrome/browser/chromeos/login/screens/eula_screen.h"
10 #include "chrome/browser/chromeos/login/screens/eula_view.h"
11 #include "testing/gmock/include/gmock/gmock.h"
15 class MockEulaScreen
: public EulaScreen
{
17 MockEulaScreen(BaseScreenDelegate
* base_screen_delegate
,
20 ~MockEulaScreen() override
;
23 class MockEulaView
: public EulaView
{
26 ~MockEulaView() override
;
28 void Bind(EulaModel
& model
) override
;
29 void Unbind() override
;
31 MOCK_METHOD0(PrepareToShow
, void());
32 MOCK_METHOD0(Show
, void());
33 MOCK_METHOD0(Hide
, void());
35 MOCK_CONST_METHOD0(GetName
, std::string());
37 MOCK_METHOD1(MockBind
, void(EulaModel
& model
));
38 MOCK_METHOD0(MockUnbind
, void());
39 MOCK_METHOD1(OnPasswordFetched
, void(const std::string
& tpm_password
));
45 } // namespace chromeos
47 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_EULA_SCREEN_H_