OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 LOGIN_MANAGER_MOCK_CHILD_JOB_H_ | 5 #ifndef LOGIN_MANAGER_MOCK_CHILD_JOB_H_ |
6 #define LOGIN_MANAGER_MOCK_CHILD_JOB_H_ | 6 #define LOGIN_MANAGER_MOCK_CHILD_JOB_H_ |
7 | 7 |
8 #include "login_manager/child_job.h" | 8 #include "login_manager/child_job.h" |
9 | 9 |
10 #include <gmock/gmock.h> | 10 #include <gmock/gmock.h> |
11 | 11 |
12 namespace login_manager { | 12 namespace login_manager { |
13 class MockChildJob : public ChildJob { | 13 class MockChildJob : public ChildJob { |
14 public: | 14 public: |
15 MockChildJob() { } | 15 MockChildJob() { } |
16 ~MockChildJob() { } | 16 ~MockChildJob() { } |
17 MOCK_METHOD0(ShouldRun, bool()); | 17 MOCK_METHOD0(ShouldRun, bool()); |
18 MOCK_METHOD0(Toggle, void()); | 18 MOCK_METHOD0(ShouldStop, bool()); |
19 MOCK_METHOD0(Run, void()); | 19 MOCK_METHOD0(RecordTime, void()); |
| 20 MOCK_METHOD0(Toggle, void()); |
| 21 MOCK_METHOD0(Run, void()); |
20 }; | 22 }; |
21 } // namespace login_manager | 23 } // namespace login_manager |
22 | 24 |
23 #endif // LOGIN_MANAGER_MOCK_CHILD_JOB_H_ | 25 #endif // LOGIN_MANAGER_MOCK_CHILD_JOB_H_ |
OLD | NEW |