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

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

Issue 137853023: [NaCl SDK] nacl_io: Add new fakes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 03328dd416c06a9a4d921761c9e4c54943d00d9d..d1cc2f92c36cb152da09d20671109cc96d432a2f 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
@@ -2,11 +2,11 @@
// 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_DEV_FS_FOR_TESTING_H_
-#define LIBRARIES_NACL_IO_TEST_DEV_FS_FOR_TESTING_H_
+#ifndef TESTS_NACL_IO_TEST_DEV_FS_FOR_TESTING_H_
+#define TESTS_NACL_IO_TEST_DEV_FS_FOR_TESTING_H_
+#include "fake_pepper_interface.h"
#include "gmock/gmock.h"
-
#include "nacl_io/devfs/dev_fs.h"
#include "nacl_io/filesystem.h"
@@ -14,8 +14,15 @@
class DevFsForTesting : public nacl_io::DevFs {
public:
- DevFsForTesting() { Init(nacl_io::FsInitArgs(1)); }
+ DevFsForTesting() {
+ nacl_io::FsInitArgs args(1);
+ args.ppapi = &pepper_;
+ Init(args);
+ }
+
int num_nodes() { return (int)inode_pool_.size(); }
+ private:
+ FakePepperInterface pepper_;
};
-#endif // LIBRARIES_NACL_IO_TEST_DEV_FS_FOR_TESTING_H_
+#endif // TESTS_NACL_IO_TEST_DEV_FS_FOR_TESTING_H_

Powered by Google App Engine
This is Rietveld 408576698