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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // 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
14 namespace chromeos {
15 namespace minijail {
16
17 class 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
OLDNEW
« 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