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

Unified Diff: third_party/crashpad/crashpad/test/scoped_temp_dir_posix.cc

Issue 2804713002: Update Crashpad to b4095401639ebe2ad33169e5c1d994065cbff1b8 (Closed)
Patch Set: Created 3 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
Index: third_party/crashpad/crashpad/test/scoped_temp_dir_posix.cc
diff --git a/third_party/crashpad/crashpad/test/scoped_temp_dir_posix.cc b/third_party/crashpad/crashpad/test/scoped_temp_dir_posix.cc
index 0368103698539a039190137a050cafa687a980a6..29577529573d59cf1cbf0b6e14c6cb7bdc3e05fc 100644
--- a/third_party/crashpad/crashpad/test/scoped_temp_dir_posix.cc
+++ b/third_party/crashpad/crashpad/test/scoped_temp_dir_posix.cc
@@ -72,15 +72,15 @@ void ScopedTempDir::RecursivelyDeleteTemporaryDirectory(
if (entry->d_type == DT_DIR) {
RecursivelyDeleteTemporaryDirectory(entry_path);
} else {
- EXPECT_EQ(0, unlink(entry_path.value().c_str()))
+ EXPECT_EQ(unlink(entry_path.value().c_str()), 0)
<< ErrnoMessage("unlink") << " " << entry_path.value();
}
}
- EXPECT_EQ(0, closedir(dir))
- << ErrnoMessage("closedir") << " " << path.value();
- EXPECT_EQ(0, rmdir(path.value().c_str()))
- << ErrnoMessage("rmdir") << " " << path.value();
+ EXPECT_EQ(closedir(dir), 0) << ErrnoMessage("closedir") << " "
+ << path.value();
+ EXPECT_EQ(rmdir(path.value().c_str()), 0) << ErrnoMessage("rmdir") << " "
+ << path.value();
}
} // namespace test
« no previous file with comments | « third_party/crashpad/crashpad/test/paths_win.cc ('k') | third_party/crashpad/crashpad/test/scoped_temp_dir_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698