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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of service; 5 part of service;
6 6
7 // Some value smaller than the object ring, so requesting a large array 7 // Some value smaller than the object ring, so requesting a large array
8 // doesn't result in an expired ref because the elements lapped it in the 8 // doesn't result in an expired ref because the elements lapped it in the
9 // object ring. 9 // object ring.
10 const int kDefaultFieldLimit = 100; 10 const int kDefaultFieldLimit = 100;
(...skipping 1315 matching lines...) Expand 10 before | Expand all | Expand 10 after
1326 } 1326 }
1327 if (startPos != null) { 1327 if (startPos != null) {
1328 params['tokenPos'] = startPos; 1328 params['tokenPos'] = startPos;
1329 } 1329 }
1330 if (endPos != null) { 1330 if (endPos != null) {
1331 params['endTokenPos'] = endPos; 1331 params['endTokenPos'] = endPos;
1332 } 1332 }
1333 return invokeRpc('getSourceReport', params); 1333 return invokeRpc('getSourceReport', params);
1334 } 1334 }
1335 1335
1336 Future<ServiceMap> reloadSources() { 1336 Future<ServiceMap> reloadSources(
1337 return invokeRpc('_reloadSources', {}).then((_) { 1337 {String rootLibUri,
1338 bool pause}) {
1339 Map<String, dynamic> params = <String, dynamic>{};
1340 if (rootLibUri != null) {
1341 params['rootLibUri'] = rootLibUri;
1342 }
1343 if (pause != null) {
1344 params['pause'] = pause;
1345 }
1346 return invokeRpc('reloadSources', params).then((result) {
1338 reloading = true; 1347 reloading = true;
1348 return result;
1339 }); 1349 });
1340 } 1350 }
1341 1351
1342 void _handleIsolateReloadEvent(ServiceEvent event) { 1352 void _handleIsolateReloadEvent(ServiceEvent event) {
1343 reloading = false; 1353 reloading = false;
1344 if (event.reloadError != null) { 1354 if (event.reloadError != null) {
1345 // Failure. 1355 // Failure.
1346 print('Reload failed: ${event.reloadError}'); 1356 print('Reload failed: ${event.reloadError}');
1347 } else { 1357 } else {
1348 _cache.clear(); 1358 _cache.clear();
(...skipping 3048 matching lines...) Expand 10 before | Expand all | Expand 10 after
4397 var v = list[i]; 4407 var v = list[i];
4398 if ((v is Map) && _isServiceMap(v)) { 4408 if ((v is Map) && _isServiceMap(v)) {
4399 list[i] = owner.getFromMap(v); 4409 list[i] = owner.getFromMap(v);
4400 } else if (v is List) { 4410 } else if (v is List) {
4401 _upgradeList(v, owner); 4411 _upgradeList(v, owner);
4402 } else if (v is Map) { 4412 } else if (v is Map) {
4403 _upgradeMap(v, owner); 4413 _upgradeMap(v, owner);
4404 } 4414 }
4405 } 4415 }
4406 } 4416 }
OLDNEW
« 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