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

Unified Diff: native_client_sdk/src/tests/nacl_io_test/dev_fs_for_testing.h

Issue 547053002: [NaCl SDK] nacl_io: Remove Node::Access method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@http_fs_root
Patch Set: Created 6 years, 3 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
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 a898a126416f0bc9ca59d2b9c565ae4018fc7ad3..6330e42a3b975b5731defd44e7a9dbd73ac643c2 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
@@ -14,6 +14,11 @@
class DevFsForTesting : public nacl_io::DevFs {
public:
+ bool Exists(const char* filename) {
binji 2014/09/08 18:48:26 nit: move below constructor
Sam Clegg 2014/09/09 19:58:30 Done.
+ struct stat buf;
+ return stat(filename, &buf) == 0;
binji 2014/09/08 18:48:26 better to call ki_stat, I think. Or do what the ot
Sam Clegg 2014/09/09 19:58:30 Done.
+ }
+
explicit DevFsForTesting(nacl_io::PepperInterface* ppapi) {
nacl_io::FsInitArgs args(1);
args.ppapi = ppapi;

Powered by Google App Engine
This is Rietveld 408576698