| OLD | NEW |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 */ | 4 */ |
| 5 | 5 |
| 6 #ifndef LIBRARIES_NACL_MOUNTS_TEST_KERNEL_PROXY_MOCK_H_ | 6 #ifndef LIBRARIES_NACL_IO_TEST_KERNEL_PROXY_MOCK_H_ |
| 7 #define LIBRARIES_NACL_MOUNTS_TEST_KERNEL_PROXY_MOCK_H_ | 7 #define LIBRARIES_NACL_IO_TEST_KERNEL_PROXY_MOCK_H_ |
| 8 | 8 |
| 9 #include <sys/types.h> | 9 #include <sys/types.h> |
| 10 #include <sys/stat.h> | 10 #include <sys/stat.h> |
| 11 #include "gmock/gmock.h" | 11 #include "gmock/gmock.h" |
| 12 | 12 |
| 13 #include "nacl_mounts/kernel_proxy.h" | 13 #include "nacl_io/kernel_proxy.h" |
| 14 | 14 |
| 15 class KernelProxyMock : public KernelProxy { | 15 class KernelProxyMock : public KernelProxy { |
| 16 public: | 16 public: |
| 17 KernelProxyMock(); | 17 KernelProxyMock(); |
| 18 virtual ~KernelProxyMock(); | 18 virtual ~KernelProxyMock(); |
| 19 | 19 |
| 20 MOCK_METHOD2(access, int(const char*, int)); | 20 MOCK_METHOD2(access, int(const char*, int)); |
| 21 MOCK_METHOD1(chdir, int(const char*)); | 21 MOCK_METHOD1(chdir, int(const char*)); |
| 22 MOCK_METHOD2(chmod, int(const char*, mode_t)); | 22 MOCK_METHOD2(chmod, int(const char*, mode_t)); |
| 23 MOCK_METHOD1(close, int(int)); | 23 MOCK_METHOD1(close, int(int)); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 38 MOCK_METHOD1(remove, int(const char*)); | 38 MOCK_METHOD1(remove, int(const char*)); |
| 39 MOCK_METHOD1(rmdir, int(const char*)); | 39 MOCK_METHOD1(rmdir, int(const char*)); |
| 40 MOCK_METHOD2(stat, int(const char*, struct stat*)); | 40 MOCK_METHOD2(stat, int(const char*, struct stat*)); |
| 41 MOCK_METHOD1(umount, int(const char*)); | 41 MOCK_METHOD1(umount, int(const char*)); |
| 42 MOCK_METHOD1(unlink, int(const char*)); | 42 MOCK_METHOD1(unlink, int(const char*)); |
| 43 MOCK_METHOD3(write, ssize_t(int, const void*, size_t)); | 43 MOCK_METHOD3(write, ssize_t(int, const void*, size_t)); |
| 44 MOCK_METHOD2(link, int(const char*, const char*)); | 44 MOCK_METHOD2(link, int(const char*, const char*)); |
| 45 MOCK_METHOD2(symlink, int(const char*, const char*)); | 45 MOCK_METHOD2(symlink, int(const char*, const char*)); |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 #endif // LIBRARIES_NACL_MOUNTS_TEST_KERNEL_PROXY_MOCK_H_ | 48 #endif // LIBRARIES_NACL_IO_TEST_KERNEL_PROXY_MOCK_H_ |
| OLD | NEW |