OLD | NEW |
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_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 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "chrome/browser/chromeos/login/screen_observer.h" | 10 #include "chrome/browser/chromeos/login/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_METHOD1(SetRlzEnabled, void(bool)); | |
29 MOCK_CONST_METHOD0(GetRlzEnabled, bool()); | |
30 }; | 28 }; |
31 | 29 |
32 } // namespace chromeos | 30 } // namespace chromeos |
33 | 31 |
34 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_SCREEN_OBSERVER_H_ | 32 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_SCREEN_OBSERVER_H_ |
OLD | NEW |