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

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

Issue 12194030: Rename mount (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix whitespace Created 7 years, 10 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 5
6 #ifndef LIBRARIES_NACL_MOUNTS_TEST_KERNEL_PROXY_MOCK_H_ 6 #ifndef LIBRARIES_NACL_IO_TEST_KERNEL_PROXY_MOCK_H_
7 #define LIBRARIES_NACL_MOUNTS_TEST_KERNEL_PROXY_MOCK_H_ 7 #define LIBRARIES_NACL_IO_TEST_KERNEL_PROXY_MOCK_H_
8 8
9 #include <sys/types.h> 9 #include <sys/types.h>
10 #include <sys/stat.h> 10 #include <sys/stat.h>
11 #include "gmock/gmock.h" 11 #include "gmock/gmock.h"
12 12
13 #include "nacl_mounts/kernel_proxy.h" 13 #include "nacl_io/kernel_proxy.h"
14 14
15 class KernelProxyMock : public KernelProxy { 15 class KernelProxyMock : public KernelProxy {
16 public: 16 public:
17 KernelProxyMock(); 17 KernelProxyMock();
18 virtual ~KernelProxyMock(); 18 virtual ~KernelProxyMock();
19 19
20 MOCK_METHOD2(access, int(const char*, int)); 20 MOCK_METHOD2(access, int(const char*, int));
21 MOCK_METHOD1(chdir, int(const char*)); 21 MOCK_METHOD1(chdir, int(const char*));
22 MOCK_METHOD2(chmod, int(const char*, mode_t)); 22 MOCK_METHOD2(chmod, int(const char*, mode_t));
23 MOCK_METHOD1(close, int(int)); 23 MOCK_METHOD1(close, int(int));
(...skipping 14 matching lines...) Expand all
38 MOCK_METHOD1(remove, int(const char*)); 38 MOCK_METHOD1(remove, int(const char*));
39 MOCK_METHOD1(rmdir, int(const char*)); 39 MOCK_METHOD1(rmdir, int(const char*));
40 MOCK_METHOD2(stat, int(const char*, struct stat*)); 40 MOCK_METHOD2(stat, int(const char*, struct stat*));
41 MOCK_METHOD1(umount, int(const char*)); 41 MOCK_METHOD1(umount, int(const char*));
42 MOCK_METHOD1(unlink, int(const char*)); 42 MOCK_METHOD1(unlink, int(const char*));
43 MOCK_METHOD3(write, ssize_t(int, const void*, size_t)); 43 MOCK_METHOD3(write, ssize_t(int, const void*, size_t));
44 MOCK_METHOD2(link, int(const char*, const char*)); 44 MOCK_METHOD2(link, int(const char*, const char*));
45 MOCK_METHOD2(symlink, int(const char*, const char*)); 45 MOCK_METHOD2(symlink, int(const char*, const char*));
46 }; 46 };
47 47
48 #endif // LIBRARIES_NACL_MOUNTS_TEST_KERNEL_PROXY_MOCK_H_ 48 #endif // LIBRARIES_NACL_IO_TEST_KERNEL_PROXY_MOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698