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

Unified Diff: minidump/minidump_string_writer_test.cc

Issue 900323003: %zu to PRIuS in minidump (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@land-crash-report-db-win
Patch Set: Created 5 years, 10 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
« no previous file with comments | « minidump/minidump_rva_list_writer_test.cc ('k') | minidump/minidump_thread_writer_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: minidump/minidump_string_writer_test.cc
diff --git a/minidump/minidump_string_writer_test.cc b/minidump/minidump_string_writer_test.cc
index 730d5fed98e05feb464f20f8a5ae9b26d9aa2581..2bc87180ff35cc49c07b7ec2e7dfd9a1d80d7d32 100644
--- a/minidump/minidump_string_writer_test.cc
+++ b/minidump/minidump_string_writer_test.cc
@@ -22,6 +22,7 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "base/format_macros.h"
#include "base/strings/string16.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
@@ -73,7 +74,7 @@ TEST(MinidumpStringWriter, MinidumpUTF16StringWriter) {
for (size_t index = 0; index < arraysize(kTestData); ++index) {
SCOPED_TRACE(base::StringPrintf(
- "index %zu, input %s", index, kTestData[index].input_string));
+ "index %" PRIuS ", input %s", index, kTestData[index].input_string));
// Make sure that the expected output string with its NUL terminator fits in
// the space provided.
@@ -120,8 +121,8 @@ TEST(MinidumpStringWriter, ConvertInvalidUTF8ToUTF16) {
};
for (size_t index = 0; index < arraysize(kTestData); ++index) {
- SCOPED_TRACE(
- base::StringPrintf("index %zu, input %s", index, kTestData[index]));
+ SCOPED_TRACE(base::StringPrintf(
+ "index %" PRIuS ", input %s", index, kTestData[index]));
file_writer.Reset();
crashpad::internal::MinidumpUTF16StringWriter string_writer;
string_writer.SetUTF8(kTestData[index]);
@@ -183,7 +184,7 @@ TEST(MinidumpStringWriter, MinidumpUTF8StringWriter) {
for (size_t index = 0; index < arraysize(kTestData); ++index) {
SCOPED_TRACE(base::StringPrintf(
- "index %zu, input %s", index, kTestData[index].string));
+ "index %" PRIuS ", input %s", index, kTestData[index].string));
file_writer.Reset();
crashpad::internal::MinidumpUTF8StringWriter string_writer;
« no previous file with comments | « minidump/minidump_rva_list_writer_test.cc ('k') | minidump/minidump_thread_writer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698