OLD | NEW |
(Empty) | |
| 1 /* Copyright (c) 2012 The Chromium 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 |
| 6 #include <sys/types.h> |
| 7 #include <sys/stat.h> |
| 8 #include "gmock/gmock.h" |
| 9 |
| 10 class KernelProxyMock : public KernelProxy { |
| 11 public: |
| 12 MOCK_METHOD2(access, int(const char*, int)); |
| 13 MOCK_METHOD1(chdir, int(const char*)); |
| 14 MOCK_METHOD2(chmod, int(const char*, mode_t)); |
| 15 MOCK_METHOD1(close, int(int)); |
| 16 MOCK_METHOD1(dup, int(int)); |
| 17 MOCK_METHOD2(fstat, int(int, struct stat*)); |
| 18 MOCK_METHOD1(fsync, int(int)); |
| 19 MOCK_METHOD2(getcwd, char*(char*, size_t)); |
| 20 MOCK_METHOD3(getdents, int(int, void*, unsigned int)); |
| 21 MOCK_METHOD1(getwd, char*(char*)); |
| 22 MOCK_METHOD1(isatty, int(int)); |
| 23 MOCK_METHOD3(lseek, off_t(int, off_t, int)); |
| 24 MOCK_METHOD2(mkdir, int(const char*, mode_t)); |
| 25 MOCK_METHOD5(mount, int(const char*, const char*, const char*, unsigned long, |
| 26 const void*)); |
| 27 MOCK_METHOD2(open, int(const char*, int)); |
| 28 MOCK_METHOD3(read, ssize_t(int, void*, size_t)); |
| 29 MOCK_METHOD1(remove, int(const char*)); |
| 30 MOCK_METHOD1(rmdir, int(const char*)); |
| 31 MOCK_METHOD2(stat, int(const char*, struct stat*)); |
| 32 MOCK_METHOD1(umount, int(const char*)); |
| 33 MOCK_METHOD1(unlink, int(const char*)); |
| 34 MOCK_METHOD3(write, ssize_t(int, const void*, size_t)); |
| 35 }; |
OLD | NEW |