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

Unified Diff: third_party/crashpad/crashpad/util/stdlib/strnlen_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/stdlib/strnlen_test.cc
diff --git a/third_party/crashpad/crashpad/util/stdlib/strnlen_test.cc b/third_party/crashpad/crashpad/util/stdlib/strnlen_test.cc
index 35ca7f1a6e8b7ea847376ef9410d9a29ab2aecd5..e030fdc843ffe3be3f1483598ac2da190c8cca59 100644
--- a/third_party/crashpad/crashpad/util/stdlib/strnlen_test.cc
+++ b/third_party/crashpad/crashpad/util/stdlib/strnlen_test.cc
@@ -24,20 +24,20 @@ namespace {
TEST(strnlen, strnlen) {
const char kTestBuffer[] = "abc\0d";
- ASSERT_EQ(3u, strlen(kTestBuffer));
- EXPECT_EQ(0u, crashpad::strnlen(kTestBuffer, 0));
- EXPECT_EQ(1u, crashpad::strnlen(kTestBuffer, 1));
- EXPECT_EQ(2u, crashpad::strnlen(kTestBuffer, 2));
- EXPECT_EQ(3u, crashpad::strnlen(kTestBuffer, 3));
- EXPECT_EQ(3u, crashpad::strnlen(kTestBuffer, 4));
- EXPECT_EQ(3u, crashpad::strnlen(kTestBuffer, 5));
- EXPECT_EQ(3u, crashpad::strnlen(kTestBuffer, 6));
+ ASSERT_EQ(strlen(kTestBuffer), 3u);
+ EXPECT_EQ(crashpad::strnlen(kTestBuffer, 0), 0u);
+ EXPECT_EQ(crashpad::strnlen(kTestBuffer, 1), 1u);
+ EXPECT_EQ(crashpad::strnlen(kTestBuffer, 2), 2u);
+ EXPECT_EQ(crashpad::strnlen(kTestBuffer, 3), 3u);
+ EXPECT_EQ(crashpad::strnlen(kTestBuffer, 4), 3u);
+ EXPECT_EQ(crashpad::strnlen(kTestBuffer, 5), 3u);
+ EXPECT_EQ(crashpad::strnlen(kTestBuffer, 6), 3u);
const char kEmptyBuffer[] = "\0";
- ASSERT_EQ(0u, strlen(kEmptyBuffer));
- EXPECT_EQ(0u, crashpad::strnlen(kEmptyBuffer, 0));
- EXPECT_EQ(0u, crashpad::strnlen(kEmptyBuffer, 1));
- EXPECT_EQ(0u, crashpad::strnlen(kEmptyBuffer, 2));
+ ASSERT_EQ(strlen(kEmptyBuffer), 0u);
+ EXPECT_EQ(crashpad::strnlen(kEmptyBuffer, 0), 0u);
+ EXPECT_EQ(crashpad::strnlen(kEmptyBuffer, 1), 0u);
+ EXPECT_EQ(crashpad::strnlen(kEmptyBuffer, 2), 0u);
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698