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

Unified Diff: third_party/crashpad/crashpad/test/scoped_temp_dir_win.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_win.cc
diff --git a/third_party/crashpad/crashpad/test/scoped_temp_dir_win.cc b/third_party/crashpad/crashpad/test/scoped_temp_dir_win.cc
index cc4820d69be9acf36f3500c4f7d088776754d9f8..0413ec429c253dc317fbd17690155ab22ffc72d4 100644
--- a/third_party/crashpad/crashpad/test/scoped_temp_dir_win.cc
+++ b/third_party/crashpad/crashpad/test/scoped_temp_dir_win.cc
@@ -81,7 +81,7 @@ void ScopedTempDir::RecursivelyDeleteTemporaryDirectory(
WIN32_FIND_DATA find_data;
HANDLE search_handle = FindFirstFile(search_mask.c_str(), &find_data);
if (search_handle == INVALID_HANDLE_VALUE)
- ASSERT_EQ(ERROR_FILE_NOT_FOUND, GetLastError());
+ ASSERT_EQ(GetLastError(), ERROR_FILE_NOT_FOUND);
do {
if (wcscmp(find_data.cFileName, L".") == 0 ||
wcscmp(find_data.cFileName, L"..") == 0) {
@@ -94,7 +94,7 @@ void ScopedTempDir::RecursivelyDeleteTemporaryDirectory(
else
EXPECT_TRUE(DeleteFile(entry_path.value().c_str()));
} while (FindNextFile(search_handle, &find_data));
- EXPECT_EQ(ERROR_NO_MORE_FILES, GetLastError());
+ EXPECT_EQ(GetLastError(), ERROR_NO_MORE_FILES);
EXPECT_TRUE(FindClose(search_handle));
EXPECT_TRUE(RemoveDirectory(path.value().c_str()));
« no previous file with comments | « third_party/crashpad/crashpad/test/scoped_temp_dir_test.cc ('k') | third_party/crashpad/crashpad/test/test.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698