blob: 561ad75f093f21250ee9a966a8baba3df9c1b2e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
// 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_MOCK_EULA_SCREEN_H_
#define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_EULA_SCREEN_H_
#pragma once
#include "chrome/browser/chromeos/login/eula_screen.h"
#include "chrome/browser/chromeos/login/eula_screen_actor.h"
#include "chrome/browser/chromeos/login/screen_observer.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace chromeos {
class MockEulaScreen : public EulaScreen {
public:
MockEulaScreen(ScreenObserver* screen_observer, EulaScreenActor* actor);
virtual ~MockEulaScreen();
};
class MockEulaScreenActor : public EulaScreenActor {
public:
MockEulaScreenActor();
virtual ~MockEulaScreenActor();
virtual void SetDelegate(Delegate* delegate);
MOCK_METHOD0(PrepareToShow, void());
MOCK_METHOD0(Show, void());
MOCK_METHOD0(Hide, void());
MOCK_CONST_METHOD0(GetName, std::string());
MOCK_METHOD1(MockSetDelegate, void(Delegate* delegate));
MOCK_METHOD1(OnPasswordFetched, void(const std::string& tpm_password));
private:
Delegate* delegate_;
};
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_EULA_SCREEN_H_
|