ScopedNode root;
ScopedNode result_node;
- size_t result_size = 0;
+ off_t result_size = 0;
int result_bytes = 0;
char buf1[1024];
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
}
TEST(FilesystemTest, DevNull) {
- DevFsForTesting fs;
+ FakePepperInterface pepper;
+ DevFsForTesting fs(&pepper);
ScopedNode dev_null;
int result_bytes = 0;
}
TEST(FilesystemTest, DevZero) {
- DevFsForTesting fs;
+ FakePepperInterface pepper;
+ DevFsForTesting fs(&pepper);
ScopedNode dev_zero;
int result_bytes = 0;
// 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;