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_UPDATE_SCREEN_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_UPDATE_SCREEN_H_
8 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h"
9 #include "chrome/browser/chromeos/login/screens/update_model.h"
10 #include "chrome/browser/chromeos/login/screens/update_screen.h"
11 #include "chrome/browser/chromeos/login/screens/update_view.h"
12 #include "testing/gmock/include/gmock/gmock.h"
16 class MockUpdateScreen
: public UpdateScreen
{
18 MockUpdateScreen(BaseScreenDelegate
* base_screen_delegate
, UpdateView
* view
);
19 virtual ~MockUpdateScreen();
21 MOCK_METHOD0(StartNetworkCheck
, void());
24 class MockUpdateView
: public UpdateView
{
27 virtual ~MockUpdateView();
29 void Bind(UpdateModel
& model
) override
;
30 void Unbind() override
;
32 MOCK_METHOD0(PrepareToShow
, void());
33 MOCK_METHOD0(Show
, void());
34 MOCK_METHOD0(Hide
, void());
35 MOCK_METHOD1(MockBind
, void(UpdateModel
& model
));
36 MOCK_METHOD0(MockUnbind
, void());
42 } // namespace chromeos
44 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_UPDATE_SCREEN_H_