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

Unified Diff: runtime/observatory/lib/src/service/object.dart

Issue 2518643002: Add a complex reload test that rebases the root script path three times. (Closed)
Patch Set: turnidge review Created 4 years, 1 month 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 | « no previous file | runtime/observatory/tests/service/complex_reload/v1/main.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/src/service/object.dart
diff --git a/runtime/observatory/lib/src/service/object.dart b/runtime/observatory/lib/src/service/object.dart
index e0f6e055920eee8fa6b9a594f19a7a0e95bfa2ca..c638dd90d9f4a0bf88b162f28d10e2337f86bc70 100644
--- a/runtime/observatory/lib/src/service/object.dart
+++ b/runtime/observatory/lib/src/service/object.dart
@@ -1333,9 +1333,19 @@ class Isolate extends ServiceObjectOwner implements M.Isolate {
return invokeRpc('getSourceReport', params);
}
- Future<ServiceMap> reloadSources() {
- return invokeRpc('_reloadSources', {}).then((_) {
+ Future<ServiceMap> reloadSources(
+ {String rootLibUri,
+ bool pause}) {
+ Map<String, dynamic> params = <String, dynamic>{};
+ if (rootLibUri != null) {
+ params['rootLibUri'] = rootLibUri;
+ }
+ if (pause != null) {
+ params['pause'] = pause;
+ }
+ return invokeRpc('reloadSources', params).then((result) {
reloading = true;
+ return result;
});
}
« no previous file with comments | « no previous file | runtime/observatory/tests/service/complex_reload/v1/main.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698