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 |