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

Unified Diff: third_party/crashpad/crashpad/test/scoped_temp_dir_test.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_test.cc
diff --git a/third_party/crashpad/crashpad/test/scoped_temp_dir_test.cc b/third_party/crashpad/crashpad/test/scoped_temp_dir_test.cc
index ea8b067b4851e946061e01ec7a10f5cd4e89ca32..cb09732291281446c27d98fda091a21a193e1b17 100644
--- a/third_party/crashpad/crashpad/test/scoped_temp_dir_test.cc
+++ b/third_party/crashpad/crashpad/test/scoped_temp_dir_test.cc
@@ -38,12 +38,12 @@ void CreateFile(const base::FilePath& path) {
#if defined(OS_POSIX)
int fd = HANDLE_EINTR(creat(path.value().c_str(), 0644));
ASSERT_GE(fd, 0) << ErrnoMessage("creat") << " " << path.value();
- ASSERT_EQ(0, IGNORE_EINTR(close(fd)))
- << ErrnoMessage("close") << " " << path.value();
+ ASSERT_EQ(IGNORE_EINTR(close(fd)), 0) << ErrnoMessage("close") << " "
+ << path.value();
#elif defined(OS_WIN)
int fd = _wcreat(path.value().c_str(), _S_IREAD | _S_IWRITE);
ASSERT_GE(fd, 0) << ErrnoMessage("_wcreat") << " " << path.value();
- ASSERT_EQ(0, _close(fd)) << ErrnoMessage("_close") << " " << path.value();
+ ASSERT_EQ(_close(fd), 0) << ErrnoMessage("_close") << " " << path.value();
#else
#error "Not implemented"
#endif
@@ -52,11 +52,11 @@ void CreateFile(const base::FilePath& path) {
void CreateDirectory(const base::FilePath& path) {
#if defined(OS_POSIX)
- ASSERT_EQ(0, mkdir(path.value().c_str(), 0755))
- << ErrnoMessage("mkdir") << " " << path.value();
+ ASSERT_EQ(mkdir(path.value().c_str(), 0755), 0) << ErrnoMessage("mkdir")
+ << " " << path.value();
#elif defined(OS_WIN)
- ASSERT_EQ(0, _wmkdir(path.value().c_str()))
- << ErrnoMessage("_wmkdir") << " " << path.value();
+ ASSERT_EQ(_wmkdir(path.value().c_str()), 0) << ErrnoMessage("_wmkdir") << " "
+ << path.value();
#else
#error "Not implemented"
#endif
« no previous file with comments | « third_party/crashpad/crashpad/test/scoped_temp_dir_posix.cc ('k') | third_party/crashpad/crashpad/test/scoped_temp_dir_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698