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

Unified Diff: ppapi/tests/test_flash_file.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 years, 8 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
« no previous file with comments | « ppapi/tests/test_flash_clipboard.cc ('k') | ppapi/tests/test_ime_input_event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « ppapi/tests/test_flash_clipboard.cc ('k') | ppapi/tests/test_ime_input_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698