Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / native_client_sdk / src / tests / nacl_io_test / filesystem_test.cc
index 1e6ece1..6089b01 100644 (file)
@@ -40,7 +40,7 @@ TEST(FilesystemTest, Sanity) {
   ScopedNode root;
   ScopedNode result_node;
 
-  size_t result_size = 0;
+  off_t result_size = 0;
   int result_bytes = 0;
   char buf1[1024];
 
@@ -270,7 +270,8 @@ TEST(FilesystemTest, MemFsRenameDir) {
 
 TEST(FilesystemTest, DevAccess) {
   // Should not be able to open non-existent file.
-  DevFsForTesting fs;
+  FakePepperInterface pepper;
+  DevFsForTesting fs(&pepper);
   ScopedNode invalid_node, valid_node;
   ASSERT_EQ(ENOENT, fs.Access(Path("/foo"), F_OK));
   // Creating non-existent file should return EACCES
@@ -290,7 +291,8 @@ TEST(FilesystemTest, DevAccess) {
 }
 
 TEST(FilesystemTest, DevNull) {
-  DevFsForTesting fs;
+  FakePepperInterface pepper;
+  DevFsForTesting fs(&pepper);
   ScopedNode dev_null;
   int result_bytes = 0;
 
@@ -313,7 +315,8 @@ TEST(FilesystemTest, DevNull) {
 }
 
 TEST(FilesystemTest, DevZero) {
-  DevFsForTesting fs;
+  FakePepperInterface pepper;
+  DevFsForTesting fs(&pepper);
   ScopedNode dev_zero;
   int result_bytes = 0;
 
@@ -343,7 +346,8 @@ TEST(FilesystemTest, DevZero) {
 
 // Disabled due to intermittent failures on linux: http://crbug.com/257257
 TEST(FilesystemTest, DISABLED_DevUrandom) {
-  DevFsForTesting fs;
+  FakePepperInterface pepper;
+  DevFsForTesting fs(&pepper);
   ScopedNode dev_urandom;
   int result_bytes = 0;