Chromium Code Reviews| 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; |