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

Unified Diff: runtime/vm/metrics_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/metrics_test.cc
diff --git a/runtime/vm/metrics_test.cc b/runtime/vm/metrics_test.cc
index 6750a41163f98bccb00eebea4c726e4044434f35..364c946422c169aa43506174f61889cb36a4821e 100644
--- a/runtime/vm/metrics_test.cc
+++ b/runtime/vm/metrics_test.cc
@@ -14,7 +14,10 @@
namespace dart {
UNIT_TEST_CASE(Metric_Simple) {
- 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_EQ(isolate, Isolate::Current());
Metric metric;
@@ -40,7 +43,10 @@ class MyMetric : public Metric {
};
UNIT_TEST_CASE(Metric_OnDemand) {
- 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_EQ(isolate, Isolate::Current());
MyMetric metric;
« runtime/vm/isolate.cc ('K') | « runtime/vm/isolate_test.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698