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

Unified Diff: runtime/vm/zone_test.cc

Issue 11040062: Renamed Zone->StackZone, BaseZone->Zone, in preparation for changing isolate->get_zone() to return … (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review changes Created 8 years, 2 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 | « runtime/vm/zone.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 0c17e40299bd594bc25d152b5b697fa1a2659c0d..e3e1bd7486db287e2d35aa3f0e11e389948dc888 100644
--- a/runtime/vm/zone_test.cc
+++ b/runtime/vm/zone_test.cc
@@ -20,7 +20,7 @@ UNIT_TEST_CASE(AllocateZone) {
EXPECT(Isolate::Current() == isolate);
EXPECT(isolate->current_zone() == NULL);
{
- Zone zone(isolate);
+ StackZone zone(isolate);
EXPECT(isolate->current_zone() != NULL);
intptr_t allocated_size = 0;
@@ -81,7 +81,7 @@ UNIT_TEST_CASE(AllocGeneric_Success) {
EXPECT(Isolate::Current() == isolate);
EXPECT(isolate->current_zone() == NULL);
{
- Zone zone(isolate);
+ StackZone zone(isolate);
EXPECT(isolate->current_zone() != NULL);
intptr_t allocated_size = 0;
@@ -105,7 +105,7 @@ UNIT_TEST_CASE(AllocGeneric_Overflow) {
EXPECT(Isolate::Current() == isolate);
EXPECT(isolate->current_zone() == NULL);
{
- Zone zone(isolate);
+ StackZone zone(isolate);
EXPECT(isolate->current_zone() != NULL);
const intptr_t kNumElements = (kIntptrMax / sizeof(uint32_t)) + 1;
@@ -137,7 +137,7 @@ UNIT_TEST_CASE(ZoneAllocated) {
// Create a few zone allocated objects.
{
- Zone zone(isolate);
+ StackZone zone(isolate);
EXPECT_EQ(0, zone.SizeInBytes());
SimpleZoneObject* first = new SimpleZoneObject();
EXPECT(first != NULL);
@@ -164,7 +164,7 @@ UNIT_TEST_CASE(ZoneAllocated) {
TEST_CASE(PrintToString) {
- Zone zone(Isolate::Current());
+ StackZone zone(Isolate::Current());
const char* result = zone.PrintToString("Hello %s!", "World");
EXPECT_STREQ("Hello World!", result);
}
« no previous file with comments | « runtime/vm/zone.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698