Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / native_client_sdk / src / tests / nacl_io_test / mock_kernel_proxy.h
index 03059a9..e121c6c 100644 (file)
@@ -26,13 +26,14 @@ class MockKernelProxy : public nacl_io::KernelProxy {
   MOCK_METHOD1(dup, int(int));
   MOCK_METHOD2(dup2, int(int, int));
   MOCK_METHOD1(fchdir, int(int));
-  MOCK_METHOD2(fchmod, int(int, int));
+  MOCK_METHOD2(fchmod, int(int, mode_t));
   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*));
@@ -48,7 +49,8 @@ class MockKernelProxy : public nacl_io::KernelProxy {
   MOCK_METHOD5(mount, int(const char*, const char*, const char*, unsigned long,
                           const void*));
   MOCK_METHOD2(munmap, int(void*, size_t));
-  MOCK_METHOD2(open, int(const char*, int));
+  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));