| Index: native_client_sdk/src/tests/nacl_io_test/dev_fs_for_testing.h
|
| diff --git a/native_client_sdk/src/tests/nacl_io_test/dev_fs_for_testing.h b/native_client_sdk/src/tests/nacl_io_test/dev_fs_for_testing.h
|
| index 03328dd416c06a9a4d921761c9e4c54943d00d9d..d1cc2f92c36cb152da09d20671109cc96d432a2f 100644
|
| --- a/native_client_sdk/src/tests/nacl_io_test/dev_fs_for_testing.h
|
| +++ b/native_client_sdk/src/tests/nacl_io_test/dev_fs_for_testing.h
|
| @@ -2,11 +2,11 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef LIBRARIES_NACL_IO_TEST_DEV_FS_FOR_TESTING_H_
|
| -#define LIBRARIES_NACL_IO_TEST_DEV_FS_FOR_TESTING_H_
|
| +#ifndef TESTS_NACL_IO_TEST_DEV_FS_FOR_TESTING_H_
|
| +#define TESTS_NACL_IO_TEST_DEV_FS_FOR_TESTING_H_
|
|
|
| +#include "fake_pepper_interface.h"
|
| #include "gmock/gmock.h"
|
| -
|
| #include "nacl_io/devfs/dev_fs.h"
|
| #include "nacl_io/filesystem.h"
|
|
|
| @@ -14,8 +14,15 @@
|
|
|
| class DevFsForTesting : public nacl_io::DevFs {
|
| public:
|
| - DevFsForTesting() { Init(nacl_io::FsInitArgs(1)); }
|
| + DevFsForTesting() {
|
| + nacl_io::FsInitArgs args(1);
|
| + args.ppapi = &pepper_;
|
| + Init(args);
|
| + }
|
| +
|
| int num_nodes() { return (int)inode_pool_.size(); }
|
| + private:
|
| + FakePepperInterface pepper_;
|
| };
|
|
|
| -#endif // LIBRARIES_NACL_IO_TEST_DEV_FS_FOR_TESTING_H_
|
| +#endif // TESTS_NACL_IO_TEST_DEV_FS_FOR_TESTING_H_
|
|
|