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

Unified Diff: util/numeric/checked_range_test.cc

Issue 849193002: win: Some %zu to PRIuS (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: fix include order Created 5 years, 11 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 | « util/misc/uuid_test.cc ('k') | util/stdlib/strlcpy_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/numeric/checked_range_test.cc
diff --git a/util/numeric/checked_range_test.cc b/util/numeric/checked_range_test.cc
index 37d482c7f5ccb60b07f628dcbc49366192c04793..9c72526a6a8379a27d1d509be2eaff10a0c4d6fb 100644
--- a/util/numeric/checked_range_test.cc
+++ b/util/numeric/checked_range_test.cc
@@ -19,6 +19,7 @@
#include <limits>
#include "base/basictypes.h"
+#include "base/format_macros.h"
#include "base/strings/stringprintf.h"
#include "gtest/gtest.h"
@@ -78,7 +79,8 @@ TEST(CheckedRange, IsValid) {
for (size_t index = 0; index < arraysize(kUnsignedTestData); ++index) {
const UnsignedTestData& testcase = kUnsignedTestData[index];
- SCOPED_TRACE(base::StringPrintf("unsigned index %zu, base 0x%x, size 0x%x",
+ SCOPED_TRACE(base::StringPrintf("unsigned index %" PRIuS
+ ", base 0x%x, size 0x%x",
index,
testcase.base,
testcase.size));
@@ -139,7 +141,8 @@ TEST(CheckedRange, IsValid) {
for (size_t index = 0; index < arraysize(kSignedTestData); ++index) {
const SignedTestData& testcase = kSignedTestData[index];
- SCOPED_TRACE(base::StringPrintf("signed index %zu, base 0x%x, size 0x%x",
+ SCOPED_TRACE(base::StringPrintf("signed index %" PRIuS
+ ", base 0x%x, size 0x%x",
index,
testcase.base,
testcase.size));
@@ -184,8 +187,8 @@ TEST(CheckedRange, ContainsValue) {
for (size_t index = 0; index < arraysize(kTestData); ++index) {
const TestData& testcase = kTestData[index];
- SCOPED_TRACE(
- base::StringPrintf("index %zu, value 0x%x", index, testcase.value));
+ SCOPED_TRACE(base::StringPrintf(
+ "index %" PRIuS ", value 0x%x", index, testcase.value));
EXPECT_EQ(testcase.valid, parent_range.ContainsValue(testcase.value));
}
@@ -232,7 +235,7 @@ TEST(CheckedRange, ContainsRange) {
for (size_t index = 0; index < arraysize(kTestData); ++index) {
const TestData& testcase = kTestData[index];
- SCOPED_TRACE(base::StringPrintf("index %zu, base 0x%x, size 0x%x",
+ SCOPED_TRACE(base::StringPrintf("index %" PRIuS ", base 0x%x, size 0x%x",
index,
testcase.base,
testcase.size));
« no previous file with comments | « util/misc/uuid_test.cc ('k') | util/stdlib/strlcpy_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698