Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: chrome/browser/chromeos/login/screens/mock_screen_observer.h

Issue 647043004: WizardScreen is merged to BaseScreen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_SCREEN_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_SCREEN_OBSERVER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_SCREEN_OBSERVER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_SCREEN_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/chromeos/login/screens/screen_observer.h" 10 #include "chrome/browser/chromeos/login/screens/screen_observer.h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
12 12
13 namespace chromeos { 13 namespace chromeos {
14 14
15 // Interface that handles notifications received from any of login wizard 15 // Interface that handles notifications received from any of login wizard
16 // screens. 16 // screens.
17 class MockScreenObserver : public ScreenObserver { 17 class MockScreenObserver : public ScreenObserver {
18 public: 18 public:
19 MockScreenObserver(); 19 MockScreenObserver();
20 virtual ~MockScreenObserver(); 20 virtual ~MockScreenObserver();
21 21
22 MOCK_METHOD1(OnExit, void(ExitCodes)); 22 MOCK_METHOD1(OnExit, void(ExitCodes));
23 MOCK_METHOD0(ShowCurrentScreen, void()); 23 MOCK_METHOD0(ShowCurrentScreen, void());
24 MOCK_METHOD2(OnSetUserNamePassword, 24 MOCK_METHOD2(OnSetUserNamePassword,
25 void(const std::string&, const std::string&)); 25 void(const std::string&, const std::string&));
26 MOCK_METHOD1(SetUsageStatisticsReporting, void(bool)); 26 MOCK_METHOD1(SetUsageStatisticsReporting, void(bool));
27 MOCK_CONST_METHOD0(GetUsageStatisticsReporting, bool()); 27 MOCK_CONST_METHOD0(GetUsageStatisticsReporting, bool());
28 MOCK_METHOD0(GetErrorScreen, ErrorScreen*()); 28 MOCK_METHOD0(GetErrorScreen, ErrorScreen*());
29 MOCK_METHOD0(ShowErrorScreen, void()); 29 MOCK_METHOD0(ShowErrorScreen, void());
30 MOCK_METHOD1(HideErrorScreen, void(WizardScreen*)); 30 MOCK_METHOD1(HideErrorScreen, void(BaseScreen*));
31 }; 31 };
32 32
33 } // namespace chromeos 33 } // namespace chromeos
34 34
35 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_SCREEN_OBSERVER_H_ 35 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_SCREEN_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/kiosk_enable_screen.cc ('k') | chrome/browser/chromeos/login/screens/network_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698