| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef TESTS_NACL_IO_TEST_MOCK_KERNEL_PROXY_H_ | 5 #ifndef TESTS_NACL_IO_TEST_MOCK_KERNEL_PROXY_H_ |
| 6 #define TESTS_NACL_IO_TEST_MOCK_KERNEL_PROXY_H_ | 6 #define TESTS_NACL_IO_TEST_MOCK_KERNEL_PROXY_H_ |
| 7 | 7 |
| 8 #include <sys/types.h> | 8 #include <sys/types.h> |
| 9 #include <sys/stat.h> | 9 #include <sys/stat.h> |
| 10 #include "gmock/gmock.h" | 10 #include "gmock/gmock.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 MOCK_METHOD2(kill, int(int, int)); | 41 MOCK_METHOD2(kill, int(int, int)); |
| 42 MOCK_METHOD3(lchown, int(const char*, uid_t, gid_t)); | 42 MOCK_METHOD3(lchown, int(const char*, uid_t, gid_t)); |
| 43 MOCK_METHOD2(link, int(const char*, const char*)); | 43 MOCK_METHOD2(link, int(const char*, const char*)); |
| 44 MOCK_METHOD3(lseek, off_t(int, off_t, int)); | 44 MOCK_METHOD3(lseek, off_t(int, off_t, int)); |
| 45 MOCK_METHOD2(lstat, int(const char*, struct stat*)); | 45 MOCK_METHOD2(lstat, int(const char*, struct stat*)); |
| 46 MOCK_METHOD2(mkdir, int(const char*, mode_t)); | 46 MOCK_METHOD2(mkdir, int(const char*, mode_t)); |
| 47 MOCK_METHOD6(mmap, void*(void*, size_t, int, int, int, size_t)); | 47 MOCK_METHOD6(mmap, void*(void*, size_t, int, int, int, size_t)); |
| 48 MOCK_METHOD5(mount, int(const char*, const char*, const char*, unsigned long, | 48 MOCK_METHOD5(mount, int(const char*, const char*, const char*, unsigned long, |
| 49 const void*)); | 49 const void*)); |
| 50 MOCK_METHOD2(munmap, int(void*, size_t)); | 50 MOCK_METHOD2(munmap, int(void*, size_t)); |
| 51 MOCK_METHOD2(open, int(const char*, int)); | 51 MOCK_METHOD3(open, int(const char*, int, mode_t)); |
| 52 MOCK_METHOD1(pipe, int(int[2])); | 52 MOCK_METHOD1(pipe, int(int[2])); |
| 53 MOCK_METHOD3(read, ssize_t(int, void*, size_t)); | 53 MOCK_METHOD3(read, ssize_t(int, void*, size_t)); |
| 54 MOCK_METHOD3(readlink, int(const char*, char*, size_t count)); | 54 MOCK_METHOD3(readlink, int(const char*, char*, size_t count)); |
| 55 MOCK_METHOD1(remove, int(const char*)); | 55 MOCK_METHOD1(remove, int(const char*)); |
| 56 MOCK_METHOD2(rename, int(const char*, const char*)); | 56 MOCK_METHOD2(rename, int(const char*, const char*)); |
| 57 MOCK_METHOD1(rmdir, int(const char*)); | 57 MOCK_METHOD1(rmdir, int(const char*)); |
| 58 MOCK_METHOD3(sigaction, int(int, const struct sigaction*, struct sigaction*)); | 58 MOCK_METHOD3(sigaction, int(int, const struct sigaction*, struct sigaction*)); |
| 59 MOCK_METHOD2(stat, int(const char*, struct stat*)); | 59 MOCK_METHOD2(stat, int(const char*, struct stat*)); |
| 60 MOCK_METHOD2(symlink, int(const char*, const char*)); | 60 MOCK_METHOD2(symlink, int(const char*, const char*)); |
| 61 MOCK_METHOD2(tcflush, int(int, int)); | 61 MOCK_METHOD2(tcflush, int(int, int)); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 91 const struct sockaddr*, socklen_t)); | 91 const struct sockaddr*, socklen_t)); |
| 92 MOCK_METHOD3(sendmsg, ssize_t(int, const struct msghdr*, int)); | 92 MOCK_METHOD3(sendmsg, ssize_t(int, const struct msghdr*, int)); |
| 93 MOCK_METHOD5(setsockopt, int(int, int, int, const void*, socklen_t)); | 93 MOCK_METHOD5(setsockopt, int(int, int, int, const void*, socklen_t)); |
| 94 MOCK_METHOD2(shutdown, int(int, int)); | 94 MOCK_METHOD2(shutdown, int(int, int)); |
| 95 MOCK_METHOD3(socket, int(int, int, int)); | 95 MOCK_METHOD3(socket, int(int, int, int)); |
| 96 MOCK_METHOD4(socketpair, int(int, int, int, int*)); | 96 MOCK_METHOD4(socketpair, int(int, int, int, int*)); |
| 97 #endif // PROVIDES_SOCKET_API | 97 #endif // PROVIDES_SOCKET_API |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 #endif // TESTS_NACL_IO_TEST_MOCK_KERNEL_PROXY_H_ | 100 #endif // TESTS_NACL_IO_TEST_MOCK_KERNEL_PROXY_H_ |
| OLD | NEW |