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

Side by Side Diff: mock_child_job.h

Issue 661224: Stop infinite restarting (Closed)
Patch Set: Created 10 years, 9 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
OLDNEW
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_
OLDNEW
« child_job.cc ('K') | « child_job_unittest.cc ('k') | session_manager_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698