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

Unified Diff: runtime/vm/zone_test.cc

Issue 2562243003: Fixed tests breaking build. (Closed)
Patch Set: Created 4 years 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 | « runtime/vm/thread_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/zone_test.cc
diff --git a/runtime/vm/zone_test.cc b/runtime/vm/zone_test.cc
index cc53ebb658336b5bc7ceb52f02ec4c664633b0ee..c239320179c897f94f1bf1693ac3ea57bd17e2ab 100644
--- a/runtime/vm/zone_test.cc
+++ b/runtime/vm/zone_test.cc
@@ -197,10 +197,11 @@ UNIT_TEST_CASE(PrintZoneMemoryInfoToJSON) {
zone.GetZone()->PrintJSON(&stream);
const char* json = stream.ToCString();
// Ensure that matches actual values.
- char* size_buf = OS::SCreate(string_stack_zone.GetZone(),
- "\"capacity\":%ld,"
- "\"used\":%ld",
- zone.SizeInBytes(), zone.UsedSizeInBytes());
+ char* size_buf =
+ OS::SCreate(string_stack_zone.GetZone(), "\"capacity\":%" Pd
+ ","
+ "\"used\":%" Pd "",
+ zone.SizeInBytes(), zone.UsedSizeInBytes());
EXPECT_SUBSTRING(size_buf, json);
}
@@ -212,10 +213,11 @@ UNIT_TEST_CASE(PrintZoneMemoryInfoToJSON) {
JSONStream stream;
zone.GetZone()->PrintJSON(&stream);
const char* json = stream.ToCString();
- char* size_buf = OS::SCreate(string_stack_zone.GetZone(),
- "\"capacity\":%ld,"
- "\"used\":%ld",
- zone.SizeInBytes(), zone.UsedSizeInBytes());
+ char* size_buf =
+ OS::SCreate(string_stack_zone.GetZone(), "\"capacity\":%" Pd
+ ","
+ "\"used\":%" Pd "",
+ zone.SizeInBytes(), zone.UsedSizeInBytes());
EXPECT_SUBSTRING(size_buf, json);
}
}
« no previous file with comments | « runtime/vm/thread_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698