| Index: ppapi/tests/test_flash_file.cc
|
| diff --git a/ppapi/tests/test_flash_file.cc b/ppapi/tests/test_flash_file.cc
|
| index 86100d96ddd4120eab6d396ef854051e5879d3f9..e5a8ee93d8c4b0ec80529c3d6fc2cbaa53429faa 100644
|
| --- a/ppapi/tests/test_flash_file.cc
|
| +++ b/ppapi/tests/test_flash_file.cc
|
| @@ -285,12 +285,10 @@ std::string TestFlashFile::TestGetDirContents() {
|
| CloseFileHandle(file_handle);
|
| ASSERT_TRUE(FileModuleLocal::CreateDir(instance_, dirname));
|
|
|
| - ASSERT_TRUE(FileModuleLocal::GetDirContents(instance_, "", &result));
|
| - FileModuleLocal::DirEntry expected[] =
|
| - { {"..", true},
|
| - {filename, false},
|
| - {dirname, true}
|
| - };
|
| + ASSERT_TRUE(
|
| + FileModuleLocal::GetDirContents(instance_, std::string(), &result));
|
| + FileModuleLocal::DirEntry expected[] = { { "..", true }, { filename, false },
|
| + { dirname, true } };
|
| size_t expected_size = sizeof(expected) / sizeof(expected[0]);
|
|
|
| std::sort(expected, expected + expected_size, DirEntryLessThan);
|
| @@ -329,7 +327,8 @@ std::string TestFlashFile::TestCreateTemporaryFile() {
|
| std::string TestFlashFile::GetItemCountUnderModuleLocalRoot(
|
| size_t* item_count) {
|
| std::vector<FileModuleLocal::DirEntry> contents;
|
| - ASSERT_TRUE(FileModuleLocal::GetDirContents(instance_, "", &contents));
|
| + ASSERT_TRUE(
|
| + FileModuleLocal::GetDirContents(instance_, std::string(), &contents));
|
| *item_count = contents.size();
|
| PASS();
|
| }
|
|
|