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

Unified Diff: third_party/crashpad/crashpad/util/stdlib/strlcpy_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/strlcpy_test.cc
diff --git a/third_party/crashpad/crashpad/util/stdlib/strlcpy_test.cc b/third_party/crashpad/crashpad/util/stdlib/strlcpy_test.cc
index cbc61c0f079a96958ac01b1cec0abba4f9051dde..57315c3b50fb3dccc09ad69c172332ee072d8aa5 100644
--- a/third_party/crashpad/crashpad/util/stdlib/strlcpy_test.cc
+++ b/third_party/crashpad/crashpad/util/stdlib/strlcpy_test.cc
@@ -55,18 +55,18 @@ TEST(strlcpy, c16lcpy) {
TestBuffer destination;
memset(&destination, 0xa5, sizeof(destination));
- EXPECT_EQ(length,
- c16lcpy(destination.data,
+ EXPECT_EQ(c16lcpy(destination.data,
test_string.c_str(),
- arraysize(destination.data)));
+ arraysize(destination.data)),
+ length);
// Make sure that the destination buffer is NUL-terminated, and that as
// much of the test string was copied as could fit.
size_t expected_destination_length =
std::min(length, arraysize(destination.data) - 1);
- EXPECT_EQ('\0', destination.data[expected_destination_length]);
- EXPECT_EQ(expected_destination_length, base::c16len(destination.data));
+ EXPECT_EQ(destination.data[expected_destination_length], '\0');
+ EXPECT_EQ(base::c16len(destination.data), expected_destination_length);
EXPECT_TRUE(base::c16memcmp(test_string.c_str(),
destination.data,
expected_destination_length) == 0);

Powered by Google App Engine
This is Rietveld 408576698