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

Unified Diff: src/platform/minijail/mock_interface.h

Issue 542124: Update minijail tests with real mocks and packaging testing deps (Closed)
Patch Set: integrate notes from cmasone 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 | « src/platform/minijail/mock_env.h ('k') | src/platform/minijail/mock_options.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/minijail/mock_interface.h
diff --git a/src/platform/minijail/mock_interface.h b/src/platform/minijail/mock_interface.h
new file mode 100644
index 0000000000000000000000000000000000000000..da968b3841dd5bac8e0a08a23cfc5d7368eaf92c
--- /dev/null
+++ b/src/platform/minijail/mock_interface.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+//
+// Interface mock class
+#ifndef __CHROMEOS_INTERFACE_MOCK_INTERFACE_H
+#define __CHROMEOS_INTERFACE_MOCK_INTERFACE_H
+
+#include "interface.h"
+
+#include <gmock/gmock.h>
+#include <gtest/gtest.h>
+
+namespace chromeos {
+namespace minijail {
+
+class MockInterface : public Interface {
+ public:
+ MockInterface() { }
+ ~MockInterface() { }
+ MOCK_METHOD1(Initialize, bool(const Options *));
+ MOCK_CONST_METHOD0(options, const Options *());
+ MOCK_METHOD1(set_options, void(const Options *));
+ MOCK_METHOD0(name, const char *());
+ MOCK_CONST_METHOD0(Jail, bool());
+ MOCK_CONST_METHOD0(Run, bool());
+};
+
+} // namespace minijail
+} // namespace chromeos
+
+#endif // __CHROMEOS_INTERFACE_MOCK_INTERFACE_H
« no previous file with comments | « src/platform/minijail/mock_env.h ('k') | src/platform/minijail/mock_options.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698