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

Unified Diff: runtime/vm/unit_test.cc

Issue 2196723002: Refactor how we report reload results (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: tweak Created 4 years, 5 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/service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/unit_test.cc
diff --git a/runtime/vm/unit_test.cc b/runtime/vm/unit_test.cc
index 9c89d9c7d8bde2be03b5d08a71fa437a2bbb370c..508385597350c965d158cb6d54f4e0b2dd9e4edf 100644
--- a/runtime/vm/unit_test.cc
+++ b/runtime/vm/unit_test.cc
@@ -280,11 +280,14 @@ void TestCase::SetReloadTestScript(const char* script) {
Dart_Handle TestCase::TriggerReload() {
Isolate* isolate = Isolate::Current();
+ JSONStream js;
{
TransitionNativeToVM transition(Thread::Current());
- isolate->ReloadSources(false, // force_reload
+ isolate->ReloadSources(&js,
+ false, // force_reload
true); // dont_delete_reload_context
+ fprintf(stderr, "RELOAD REPORT:\n%s\n", js.ToCString());
}
return Dart_FinalizeLoading(false);
« no previous file with comments | « runtime/vm/service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698