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

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

Issue 2435323002: [NaCl SDK] Refactor FakeFileRefInterface. (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_pepper_interface_html5_fs.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_util.h
diff --git a/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_util.h b/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_util.h
index 832bc450a54de6eedf43826e4d047415f7526e17..11e6103e11626f298d51737830364dfa9855ccf9 100644
--- a/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_util.h
+++ b/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_util.h
@@ -22,6 +22,16 @@ class FakeFileRefResource : public FakeResource {
std::string contents;
};
+class FakeFileSystemResource : public FakeResource {
+ public:
+ FakeFileSystemResource() : filesystem(NULL), opened(false) {}
+ ~FakeFileSystemResource() { delete filesystem; }
+ static const char* classname() { return "FakeFileSystemResource"; }
+
+ FakeHtml5FsFilesystem* filesystem; // Owned.
+ bool opened;
+};
+
int32_t RunCompletionCallback(PP_CompletionCallback* callback, int32_t result);
#endif // LIBRARIES_NACL_IO_TEST_FAKE_UTIL_H_
« no previous file with comments | « native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_pepper_interface_html5_fs.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698