| Index: native_client_sdk/src/libraries/nacl_mounts_test/kernel_proxy_mock.h
|
| diff --git a/native_client_sdk/src/libraries/nacl_mounts_test/kernel_proxy_mock.h b/native_client_sdk/src/libraries/nacl_mounts_test/kernel_proxy_mock.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6eda594052e5185a8ad7ed11ab7ad93a9d74bd5c
|
| --- /dev/null
|
| +++ b/native_client_sdk/src/libraries/nacl_mounts_test/kernel_proxy_mock.h
|
| @@ -0,0 +1,35 @@
|
| +/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| + * Use of this source code is governed by a BSD-style license that can be
|
| + * found in the LICENSE file.
|
| + */
|
| +
|
| +#include <sys/types.h>
|
| +#include <sys/stat.h>
|
| +#include "gmock/gmock.h"
|
| +
|
| +class KernelProxyMock : public KernelProxy {
|
| + public:
|
| + MOCK_METHOD2(access, int(const char*, int));
|
| + MOCK_METHOD1(chdir, int(const char*));
|
| + MOCK_METHOD2(chmod, int(const char*, mode_t));
|
| + MOCK_METHOD1(close, int(int));
|
| + MOCK_METHOD1(dup, int(int));
|
| + MOCK_METHOD2(fstat, int(int, struct stat*));
|
| + MOCK_METHOD1(fsync, int(int));
|
| + MOCK_METHOD2(getcwd, char*(char*, size_t));
|
| + MOCK_METHOD3(getdents, int(int, void*, unsigned int));
|
| + MOCK_METHOD1(getwd, char*(char*));
|
| + MOCK_METHOD1(isatty, int(int));
|
| + MOCK_METHOD3(lseek, off_t(int, off_t, int));
|
| + MOCK_METHOD2(mkdir, int(const char*, mode_t));
|
| + MOCK_METHOD5(mount, int(const char*, const char*, const char*, unsigned long,
|
| + const void*));
|
| + MOCK_METHOD2(open, int(const char*, int));
|
| + MOCK_METHOD3(read, ssize_t(int, void*, size_t));
|
| + MOCK_METHOD1(remove, int(const char*));
|
| + MOCK_METHOD1(rmdir, int(const char*));
|
| + MOCK_METHOD2(stat, int(const char*, struct stat*));
|
| + MOCK_METHOD1(umount, int(const char*));
|
| + MOCK_METHOD1(unlink, int(const char*));
|
| + MOCK_METHOD3(write, ssize_t(int, const void*, size_t));
|
| +};
|
|
|