OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_DEVICE_DISABLED_SCREEN_ACTOR_
H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_DEVICE_DISABLED_SCREEN_VIEW_H
_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_DEVICE_DISABLED_SCREEN_ACTOR_
H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_DEVICE_DISABLED_SCREEN_VIEW_H
_ |
7 | 7 |
8 #include "chrome/browser/chromeos/login/screens/device_disabled_screen_actor.h" | 8 #include "chrome/browser/chromeos/login/screens/device_disabled_screen_view.h" |
9 #include "testing/gmock/include/gmock/gmock.h" | 9 #include "testing/gmock/include/gmock/gmock.h" |
10 | 10 |
11 namespace chromeos { | 11 namespace chromeos { |
12 | 12 |
13 class MockDeviceDisabledScreenActor : public DeviceDisabledScreenActor { | 13 class MockDeviceDisabledScreenView : public DeviceDisabledScreenView { |
14 public: | 14 public: |
15 MockDeviceDisabledScreenActor(); | 15 MockDeviceDisabledScreenView(); |
16 ~MockDeviceDisabledScreenActor() override; | 16 ~MockDeviceDisabledScreenView() override; |
17 | 17 |
18 void SetDelegate(Delegate* delegate) override; | 18 void SetDelegate(Delegate* delegate) override; |
19 | 19 |
20 MOCK_METHOD0(Show, void()); | 20 MOCK_METHOD0(Show, void()); |
21 MOCK_METHOD0(Hide, void()); | 21 MOCK_METHOD0(Hide, void()); |
22 MOCK_METHOD1(UpdateMessage, void(const std::string& message)); | 22 MOCK_METHOD1(UpdateMessage, void(const std::string& message)); |
23 | 23 |
24 private: | 24 private: |
25 MOCK_METHOD1(MockSetDelegate, void(Delegate* delegate)); | 25 MOCK_METHOD1(MockSetDelegate, void(Delegate* delegate)); |
26 | 26 |
27 Delegate* delegate_; | 27 Delegate* delegate_; |
28 }; | 28 }; |
29 | 29 |
30 } // namespace chromeos | 30 } // namespace chromeos |
31 | 31 |
32 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_DEVICE_DISABLED_SCREEN_ACT
OR_H_ | 32 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_DEVICE_DISABLED_SCREEN_VIE
W_H_ |
OLD | NEW |