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

Side by Side Diff: native_client_sdk/src/tests/nacl_io_test/kernel_proxy_mock.h

Issue 23498015: [NaCl SDK] Support non blocking TCP/UDP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
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 #ifndef LIBRARIES_NACL_IO_TEST_KERNEL_PROXY_MOCK_H_ 5 #ifndef LIBRARIES_NACL_IO_TEST_KERNEL_PROXY_MOCK_H_
6 #define LIBRARIES_NACL_IO_TEST_KERNEL_PROXY_MOCK_H_ 6 #define LIBRARIES_NACL_IO_TEST_KERNEL_PROXY_MOCK_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 26 matching lines...) Expand all
37 MOCK_METHOD1(isatty, int(int)); 37 MOCK_METHOD1(isatty, int(int));
38 MOCK_METHOD2(kill, int(int, int)); 38 MOCK_METHOD2(kill, int(int, int));
39 MOCK_METHOD3(lchown, int(const char*, uid_t, gid_t)); 39 MOCK_METHOD3(lchown, int(const char*, uid_t, gid_t));
40 MOCK_METHOD2(link, int(const char*, const char*)); 40 MOCK_METHOD2(link, int(const char*, const char*));
41 MOCK_METHOD3(lseek, off_t(int, off_t, int)); 41 MOCK_METHOD3(lseek, off_t(int, off_t, int));
42 MOCK_METHOD2(mkdir, int(const char*, mode_t)); 42 MOCK_METHOD2(mkdir, int(const char*, mode_t));
43 MOCK_METHOD6(mmap, void*(void*, size_t, int, int, int, size_t)); 43 MOCK_METHOD6(mmap, void*(void*, size_t, int, int, int, size_t));
44 MOCK_METHOD5(mount, int(const char*, const char*, const char*, unsigned long, 44 MOCK_METHOD5(mount, int(const char*, const char*, const char*, unsigned long,
45 const void*)); 45 const void*));
46 MOCK_METHOD2(open, int(const char*, int)); 46 MOCK_METHOD2(open, int(const char*, int));
47 MOCK_METHOD1(pipe, int(int[2]));
47 MOCK_METHOD3(read, ssize_t(int, void*, size_t)); 48 MOCK_METHOD3(read, ssize_t(int, void*, size_t));
48 MOCK_METHOD1(remove, int(const char*)); 49 MOCK_METHOD1(remove, int(const char*));
49 MOCK_METHOD1(rmdir, int(const char*)); 50 MOCK_METHOD1(rmdir, int(const char*));
50 MOCK_METHOD2(signal, sighandler_t(int, sighandler_t)); 51 MOCK_METHOD2(signal, sighandler_t(int, sighandler_t));
51 MOCK_METHOD2(sigset, sighandler_t(int, sighandler_t)); 52 MOCK_METHOD2(sigset, sighandler_t(int, sighandler_t));
52 MOCK_METHOD2(stat, int(const char*, struct stat*)); 53 MOCK_METHOD2(stat, int(const char*, struct stat*));
53 MOCK_METHOD2(symlink, int(const char*, const char*)); 54 MOCK_METHOD2(symlink, int(const char*, const char*));
54 MOCK_METHOD2(tcgetattr, int(int, struct termios*)); 55 MOCK_METHOD2(tcgetattr, int(int, struct termios*));
55 MOCK_METHOD3(tcsetattr, int(int, int, const struct termios*)); 56 MOCK_METHOD3(tcsetattr, int(int, int, const struct termios*));
56 MOCK_METHOD1(umount, int(const char*)); 57 MOCK_METHOD1(umount, int(const char*));
(...skipping 25 matching lines...) Expand all
82 MOCK_METHOD3(sendmsg, ssize_t(int, const struct msghdr*, int)); 83 MOCK_METHOD3(sendmsg, ssize_t(int, const struct msghdr*, int));
83 MOCK_METHOD5(setsockopt, int(int, int, int, const void*, socklen_t)); 84 MOCK_METHOD5(setsockopt, int(int, int, int, const void*, socklen_t));
84 MOCK_METHOD2(shutdown, int(int, int)); 85 MOCK_METHOD2(shutdown, int(int, int));
85 MOCK_METHOD3(socket, int(int, int, int)); 86 MOCK_METHOD3(socket, int(int, int, int));
86 MOCK_METHOD4(socketpair, int(int, int, int, int*)); 87 MOCK_METHOD4(socketpair, int(int, int, int, int*));
87 #endif // PROVIDES_SOCKET_API 88 #endif // PROVIDES_SOCKET_API
88 89
89 }; 90 };
90 91
91 #endif // LIBRARIES_NACL_IO_TEST_KERNEL_PROXY_MOCK_H_ 92 #endif // LIBRARIES_NACL_IO_TEST_KERNEL_PROXY_MOCK_H_
OLDNEW
« no previous file with comments | « native_client_sdk/src/tests/nacl_io_test/fifo_test.cc ('k') | native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698