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

Unified Diff: native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_file_system_interface.h

Issue 2455973003: [NaCl SDK] Refactor FakeFileSystemInterface. (Closed)
Patch Set: Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698