Index: runtime/vm/service_test.cc |
diff --git a/runtime/vm/service_test.cc b/runtime/vm/service_test.cc |
index 310305a61b2bddc684ee5c82a5792a7d21fce364..f5fe86f81f96425b075faf97865f2c812e884e99 100644 |
--- a/runtime/vm/service_test.cc |
+++ b/runtime/vm/service_test.cc |
@@ -120,7 +120,8 @@ TEST_CASE(Service_IdZones) { |
// Both RingServiceIdZones share the same backing store and id space. |
// Always allocate a new id. |
- RingServiceIdZone always_new_zone(ring, ObjectIdRing::kAllocateId); |
+ RingServiceIdZone always_new_zone; |
+ always_new_zone.Init(ring, ObjectIdRing::kAllocateId); |
EXPECT_STREQ("objects/0", always_new_zone.GetServiceId(test_a)); |
EXPECT_STREQ("objects/1", always_new_zone.GetServiceId(test_a)); |
EXPECT_STREQ("objects/2", always_new_zone.GetServiceId(test_a)); |
@@ -128,7 +129,8 @@ TEST_CASE(Service_IdZones) { |
EXPECT_STREQ("objects/4", always_new_zone.GetServiceId(test_c)); |
// Reuse an existing id or allocate a new id. |
- RingServiceIdZone reuse_zone(ring, ObjectIdRing::kReuseId); |
+ RingServiceIdZone reuse_zone; |
+ reuse_zone.Init(ring, ObjectIdRing::kReuseId); |
EXPECT_STREQ("objects/0", reuse_zone.GetServiceId(test_a)); |
EXPECT_STREQ("objects/0", reuse_zone.GetServiceId(test_a)); |
EXPECT_STREQ("objects/3", reuse_zone.GetServiceId(test_b)); |