blob: da968b3841dd5bac8e0a08a23cfc5d7368eaf92c [file] [log] [blame]
Will Drewry4dd0e662010-01-19 14:43:50 -08001// Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4//
5// Interface mock class
6#ifndef __CHROMEOS_INTERFACE_MOCK_INTERFACE_H
7#define __CHROMEOS_INTERFACE_MOCK_INTERFACE_H
8
9#include "interface.h"
10
11#include <gmock/gmock.h>
12#include <gtest/gtest.h>
13
14namespace chromeos {
15namespace minijail {
16
17class MockInterface : public Interface {
18 public:
19 MockInterface() { }
20 ~MockInterface() { }
21 MOCK_METHOD1(Initialize, bool(const Options *));
22 MOCK_CONST_METHOD0(options, const Options *());
23 MOCK_METHOD1(set_options, void(const Options *));
24 MOCK_METHOD0(name, const char *());
25 MOCK_CONST_METHOD0(Jail, bool());
26 MOCK_CONST_METHOD0(Run, bool());
27};
28
29} // namespace minijail
30} // namespace chromeos
31
32#endif // __CHROMEOS_INTERFACE_MOCK_INTERFACE_H