| Index: native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_file_system_interface.h
|
| diff --git a/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_file_system_interface.h b/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_file_system_interface.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3284734c11add63fb40a7855ad8ca58db4a96d03
|
| --- /dev/null
|
| +++ b/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_file_system_interface.h
|
| @@ -0,0 +1,27 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// 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_FAKE_FILE_SYSTEM_INTERFACE_H_
|
| +#define LIBRARIES_NACL_IO_TEST_FAKE_FILE_SYSTEM_INTERFACE_H_
|
| +
|
| +#include "fake_ppapi/fake_core_interface.h"
|
| +#include "sdk_util/macros.h"
|
| +
|
| +class FakeFileSystemInterface : public nacl_io::FileSystemInterface {
|
| + public:
|
| + FakeFileSystemInterface(FakeCoreInterface* core_interface);
|
| +
|
| + virtual PP_Bool IsFileSystem(PP_Resource resource);
|
| + virtual PP_Resource Create(PP_Instance instance, PP_FileSystemType type);
|
| + virtual int32_t Open(PP_Resource file_system,
|
| + int64_t expected_size,
|
| + PP_CompletionCallback callback);
|
| +
|
| + private:
|
| + FakeCoreInterface* core_interface_; // Weak reference.
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(FakeFileSystemInterface);
|
| +};
|
| +
|
| +#endif // LIBRARIES_NACL_IO_TEST_FAKE_FILE_SYSTEM_INTERFACE_H_
|
|
|