OLD | NEW |
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_ |
OLD | NEW |