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

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

Issue 10096012: [cros] Add Ctrl+Alt+E shortcut to Welcome/EULA screen that cancels update and starts with enrollment (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add test Created 8 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_MOCK_SCREEN_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_SCREEN_OBSERVER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_SCREEN_OBSERVER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_SCREEN_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "chrome/browser/chromeos/login/screen_observer.h" 11 #include "chrome/browser/chromeos/login/screen_observer.h"
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 13
14 namespace chromeos { 14 namespace chromeos {
15 15
16 // Interface that handles notifications received from any of login wizard 16 // Interface that handles notifications received from any of login wizard
17 // screens. 17 // screens.
18 class MockScreenObserver : public ScreenObserver { 18 class MockScreenObserver : public ScreenObserver {
19 public: 19 public:
20 MockScreenObserver(); 20 MockScreenObserver();
21 virtual ~MockScreenObserver(); 21 virtual ~MockScreenObserver();
22 22
23 MOCK_METHOD1(OnExit, void(ExitCodes)); 23 MOCK_METHOD1(OnExit, void(ExitCodes));
24 MOCK_METHOD0(ShowCurrentScreen, void()); 24 MOCK_METHOD0(ShowCurrentScreen, void());
25 MOCK_METHOD2(OnSetUserNamePassword, 25 MOCK_METHOD2(OnSetUserNamePassword,
26 void(const std::string&, const std::string&)); 26 void(const std::string&, const std::string&));
27 MOCK_METHOD1(set_usage_statistics_reporting, void(bool)); 27 MOCK_METHOD1(SetUsageStatisticsReporting, void(bool));
28 MOCK_CONST_METHOD0(usage_statistics_reporting, bool()); 28 MOCK_CONST_METHOD0(GetUsageStatisticsReporting, bool());
29 }; 29 };
30 30
31 } // namespace chromeos 31 } // namespace chromeos
32 32
33 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_SCREEN_OBSERVER_H_ 33 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_SCREEN_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/eula_screen.cc ('k') | chrome/browser/chromeos/login/screen_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698