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

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

Issue 271513002: [NaCl SDK] nacl_io: Make IRT intercepts (and their test code) more robust. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
« no previous file with comments | « native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 MOCK_METHOD3(recvmsg, ssize_t(int, struct msghdr*, int)); 88 MOCK_METHOD3(recvmsg, ssize_t(int, struct msghdr*, int));
89 MOCK_METHOD4(send, ssize_t(int, const void*, size_t, int)); 89 MOCK_METHOD4(send, ssize_t(int, const void*, size_t, int));
90 MOCK_METHOD6(sendto, ssize_t(int, const void*, size_t, int, 90 MOCK_METHOD6(sendto, ssize_t(int, const void*, size_t, int,
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
99 }; 98 };
100 99
101 #endif // TESTS_NACL_IO_TEST_MOCK_KERNEL_PROXY_H_ 100 #endif // TESTS_NACL_IO_TEST_MOCK_KERNEL_PROXY_H_
OLDNEW
« no previous file with comments | « native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698