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

Unified Diff: native_client_sdk/src/tests/nacl_io_test/mock_kernel_proxy.h

Issue 565343002: [NaCl SDK] nacl_io: Plumb through {,f}utime{,s} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 6 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/tests/nacl_io_test/mock_kernel_proxy.h
diff --git a/native_client_sdk/src/tests/nacl_io_test/mock_kernel_proxy.h b/native_client_sdk/src/tests/nacl_io_test/mock_kernel_proxy.h
index 04a37affede35dfebaf6f928d87a3b6ab8d3f1fe..b29fe6a18dc48650ceb196e12209a0fbe9f2c8a7 100644
--- a/native_client_sdk/src/tests/nacl_io_test/mock_kernel_proxy.h
+++ b/native_client_sdk/src/tests/nacl_io_test/mock_kernel_proxy.h
@@ -29,10 +29,11 @@ class MockKernelProxy : public nacl_io::KernelProxy {
MOCK_METHOD2(fchmod, int(int, int));
MOCK_METHOD3(fchown, int(int, uid_t, gid_t));
MOCK_METHOD3(fcntl, int(int, int, va_list));
+ MOCK_METHOD1(fdatasync, int(int));
MOCK_METHOD2(ftruncate, int(int, off_t));
MOCK_METHOD2(fstat, int(int, struct stat*));
MOCK_METHOD1(fsync, int(int));
- MOCK_METHOD1(fdatasync, int(int));
+ MOCK_METHOD2(futimens, int(int, const struct timespec[2]));
MOCK_METHOD2(getcwd, char*(char*, size_t));
MOCK_METHOD3(getdents, int(int, void*, unsigned int));
MOCK_METHOD1(getwd, char*(char*));
@@ -49,6 +50,7 @@ class MockKernelProxy : public nacl_io::KernelProxy {
const void*));
MOCK_METHOD2(munmap, int(void*, size_t));
MOCK_METHOD3(open, int(const char*, int, mode_t));
+ MOCK_METHOD1(open_resource, int(const char*));
MOCK_METHOD1(pipe, int(int[2]));
MOCK_METHOD3(read, ssize_t(int, void*, size_t));
MOCK_METHOD3(readlink, int(const char*, char*, size_t count));
@@ -61,13 +63,11 @@ class MockKernelProxy : public nacl_io::KernelProxy {
MOCK_METHOD2(tcflush, int(int, int));
MOCK_METHOD2(tcgetattr, int(int, struct termios*));
MOCK_METHOD3(tcsetattr, int(int, int, const struct termios*));
- MOCK_METHOD1(umount, int(const char*));
MOCK_METHOD2(truncate, int(const char*, off_t));
+ MOCK_METHOD1(umount, int(const char*));
MOCK_METHOD1(unlink, int(const char*));
- MOCK_METHOD2(utime, int(const char*, const struct utimbuf*));
- MOCK_METHOD2(utimes, int(const char*, const struct timeval[2]));
+ MOCK_METHOD2(utimens, int(const char*, const struct timespec[2]));
MOCK_METHOD3(write, ssize_t(int, const void*, size_t));
- MOCK_METHOD1(open_resource, int(const char*));
#ifdef PROVIDES_SOCKET_API
MOCK_METHOD3(poll, int(struct pollfd*, nfds_t, int));
« 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