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

Unified Diff: mock_child_job.h

Issue 553016: port to use centralized constants files, and add input validation (Closed)
Patch Set: address shell injection, otehr comments (per wad) Created 10 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « constants.cc ('k') | mock_system_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mock_child_job.h
diff --git a/mock_child_job.h b/mock_child_job.h
new file mode 100644
index 0000000000000000000000000000000000000000..7587b41bc810bd2982103d33c1d2d14efea25a39
--- /dev/null
+++ b/mock_child_job.h
@@ -0,0 +1,23 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef LOGIN_MANAGER_MOCK_CHILD_JOB_H_
+#define LOGIN_MANAGER_MOCK_CHILD_JOB_H_
+
+#include "login_manager/child_job.h"
+
+#include <gmock/gmock.h>
+
+namespace login_manager {
+class MockChildJob : public ChildJob {
+ public:
+ MockChildJob() { }
+ ~MockChildJob() { }
+ MOCK_METHOD0(ShouldRun, bool());
+ MOCK_METHOD0(Toggle, void());
+ MOCK_METHOD0(Run, void());
+};
+} // namespace login_manager
+
+#endif // LOGIN_MANAGER_MOCK_CHILD_JOB_H_
« no previous file with comments | « constants.cc ('k') | mock_system_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698