| OLD | NEW |
| 1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 */ | |
| 5 | 4 |
| 6 #ifndef LIBRARIES_NACL_IO_TEST_MOUNT_MOCK_H_ | 5 #ifndef LIBRARIES_NACL_IO_TEST_MOUNT_MOCK_H_ |
| 7 #define LIBRARIES_NACL_IO_TEST_MOUNT_MOCK_H_ | 6 #define LIBRARIES_NACL_IO_TEST_MOUNT_MOCK_H_ |
| 8 | 7 |
| 9 #include "gmock/gmock.h" | 8 #include "gmock/gmock.h" |
| 10 | 9 |
| 11 #include "nacl_io/mount.h" | 10 #include "nacl_io/mount.h" |
| 12 | 11 |
| 13 class MountMock : public Mount { | 12 class MountMock : public Mount { |
| 14 public: | 13 public: |
| 15 MountMock(); | 14 MountMock(); |
| 16 virtual ~MountMock(); | 15 virtual ~MountMock(); |
| 17 | 16 |
| 18 MOCK_METHOD3(Init, Error(int, StringMap_t&, PepperInterface*)); | 17 MOCK_METHOD3(Init, Error(int, StringMap_t&, PepperInterface*)); |
| 19 MOCK_METHOD0(Destroy, void()); | 18 MOCK_METHOD0(Destroy, void()); |
| 20 MOCK_METHOD2(Access, Error(const Path&, int)); | 19 MOCK_METHOD2(Access, Error(const Path&, int)); |
| 21 MOCK_METHOD3(Open, Error(const Path&, int, ScopedMountNode*)); | 20 MOCK_METHOD3(Open, Error(const Path&, int, ScopedMountNode*)); |
| 22 MOCK_METHOD2(OpenResource, Error(const Path&, ScopedMountNode*)); | 21 MOCK_METHOD2(OpenResource, Error(const Path&, ScopedMountNode*)); |
| 23 MOCK_METHOD1(Unlink, Error(const Path&)); | 22 MOCK_METHOD1(Unlink, Error(const Path&)); |
| 24 MOCK_METHOD2(Mkdir, Error(const Path&, int)); | 23 MOCK_METHOD2(Mkdir, Error(const Path&, int)); |
| 25 MOCK_METHOD1(Rmdir, Error(const Path&)); | 24 MOCK_METHOD1(Rmdir, Error(const Path&)); |
| 26 MOCK_METHOD1(Remove, Error(const Path&)); | 25 MOCK_METHOD1(Remove, Error(const Path&)); |
| 27 }; | 26 }; |
| 28 | 27 |
| 29 #endif // LIBRARIES_NACL_IO_TEST_MOUNT_MOCK_H_ | 28 #endif // LIBRARIES_NACL_IO_TEST_MOUNT_MOCK_H_ |
| 30 | |
| OLD | NEW |