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

Unified Diff: runtime/vm/zone_test.cc

Issue 1162033005: Fix http://dartbug.com/23578: (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update to ToT. Created 5 years, 6 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
Index: runtime/vm/zone_test.cc
diff --git a/runtime/vm/zone_test.cc b/runtime/vm/zone_test.cc
index 31ec7868d3ea9dcedea9e25275cf1ddeffc111d9..580f9686727c839990217e393db33015221a9ee9 100644
--- a/runtime/vm/zone_test.cc
+++ b/runtime/vm/zone_test.cc
@@ -16,7 +16,10 @@ UNIT_TEST_CASE(AllocateZone) {
#if defined(DEBUG)
FLAG_trace_zones = true;
#endif
- Isolate* isolate = Isolate::Init(NULL);
+ Isolate::Flags vm_flags;
+ Dart_IsolateFlags api_flags;
+ vm_flags.CopyTo(&api_flags);
+ Isolate* isolate = Isolate::Init(NULL, api_flags);
EXPECT(Isolate::Current() == isolate);
EXPECT(isolate->current_zone() == NULL);
{
@@ -78,7 +81,10 @@ UNIT_TEST_CASE(AllocGeneric_Success) {
#if defined(DEBUG)
FLAG_trace_zones = true;
#endif
- Isolate* isolate = Isolate::Init(NULL);
+ Isolate::Flags vm_flags;
+ Dart_IsolateFlags api_flags;
+ vm_flags.CopyTo(&api_flags);
+ Isolate* isolate = Isolate::Init(NULL, api_flags);
EXPECT(Isolate::Current() == isolate);
EXPECT(isolate->current_zone() == NULL);
{
@@ -102,7 +108,10 @@ UNIT_TEST_CASE(AllocGeneric_Overflow) {
#if defined(DEBUG)
FLAG_trace_zones = true;
#endif
- Isolate* isolate = Isolate::Init(NULL);
+ Isolate::Flags vm_flags;
+ Dart_IsolateFlags api_flags;
+ vm_flags.CopyTo(&api_flags);
+ Isolate* isolate = Isolate::Init(NULL, api_flags);
EXPECT(Isolate::Current() == isolate);
EXPECT(isolate->current_zone() == NULL);
{
@@ -121,7 +130,10 @@ UNIT_TEST_CASE(ZoneAllocated) {
#if defined(DEBUG)
FLAG_trace_zones = true;
#endif
- Isolate* isolate = Isolate::Init(NULL);
+ Isolate::Flags vm_flags;
+ Dart_IsolateFlags api_flags;
+ vm_flags.CopyTo(&api_flags);
+ Isolate* isolate = Isolate::Init(NULL, api_flags);
EXPECT(Isolate::Current() == isolate);
EXPECT(isolate->current_zone() == NULL);
static int marker;

Powered by Google App Engine
This is Rietveld 408576698