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

Unified Diff: third_party/crashpad/crashpad/util/win/handle_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/util/win/handle_test.cc
diff --git a/third_party/crashpad/crashpad/util/win/handle_test.cc b/third_party/crashpad/crashpad/util/win/handle_test.cc
index 60e5037be8eb2e4d7aa4c4684194f2b0e95db049..5898943d20d9b5a3ab39f6c7c0cad91efce5f137 100644
--- a/third_party/crashpad/crashpad/util/win/handle_test.cc
+++ b/third_party/crashpad/crashpad/util/win/handle_test.cc
@@ -25,27 +25,27 @@ namespace test {
namespace {
TEST(Handle, HandleToInt) {
- EXPECT_EQ(0, HandleToInt(nullptr));
- EXPECT_EQ(-1, HandleToInt(INVALID_HANDLE_VALUE));
- EXPECT_EQ(1, HandleToInt(reinterpret_cast<HANDLE>(1)));
- EXPECT_EQ(std::numeric_limits<int>::max(),
- HandleToInt(reinterpret_cast<HANDLE>(
- static_cast<intptr_t>(std::numeric_limits<int>::max()))));
- EXPECT_EQ(std::numeric_limits<int>::min(),
- HandleToInt(reinterpret_cast<HANDLE>(
- static_cast<intptr_t>(std::numeric_limits<int>::min()))));
+ EXPECT_EQ(HandleToInt(nullptr), 0);
+ EXPECT_EQ(HandleToInt(INVALID_HANDLE_VALUE), -1);
+ EXPECT_EQ(HandleToInt(reinterpret_cast<HANDLE>(1)), 1);
+ EXPECT_EQ(HandleToInt(reinterpret_cast<HANDLE>(
+ static_cast<intptr_t>(std::numeric_limits<int>::max()))),
+ std::numeric_limits<int>::max());
+ EXPECT_EQ(HandleToInt(reinterpret_cast<HANDLE>(
+ static_cast<intptr_t>(std::numeric_limits<int>::min()))),
+ std::numeric_limits<int>::min());
}
TEST(Handle, IntToHandle) {
- EXPECT_EQ(nullptr, IntToHandle(0));
- EXPECT_EQ(INVALID_HANDLE_VALUE, IntToHandle(-1));
- EXPECT_EQ(reinterpret_cast<HANDLE>(1), IntToHandle(1));
- EXPECT_EQ(reinterpret_cast<HANDLE>(
- static_cast<intptr_t>(std::numeric_limits<int>::max())),
- IntToHandle(std::numeric_limits<int>::max()));
- EXPECT_EQ(reinterpret_cast<HANDLE>(
- static_cast<intptr_t>(std::numeric_limits<int>::min())),
- IntToHandle(std::numeric_limits<int>::min()));
+ EXPECT_EQ(IntToHandle(0), nullptr);
+ EXPECT_EQ(IntToHandle(-1), INVALID_HANDLE_VALUE);
+ EXPECT_EQ(IntToHandle(1), reinterpret_cast<HANDLE>(1));
+ EXPECT_EQ(IntToHandle(std::numeric_limits<int>::max()),
+ reinterpret_cast<HANDLE>(
+ static_cast<intptr_t>(std::numeric_limits<int>::max())));
+ EXPECT_EQ(IntToHandle(std::numeric_limits<int>::min()),
+ reinterpret_cast<HANDLE>(
+ static_cast<intptr_t>(std::numeric_limits<int>::min())));
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698