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

Unified Diff: runtime/vm/service_test.cc

Issue 292663012: Retaining path in Observatory. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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/service_test.cc
===================================================================
--- runtime/vm/service_test.cc (revision 36435)
+++ runtime/vm/service_test.cc (working copy)
@@ -563,6 +563,25 @@
"\"id\":\"objects\\/int-%" Pd "\"",
arr.raw()->Size() + arr.At(0)->Size());
+ // Retaining path to 'arr', limit 1.
+ service_msg = Eval(
+ lib,
+ "[port, ['objects', '$validId', 'retaining_path'], ['limit'], ['1']]");
+ Service::HandleIsolateMessage(isolate, service_msg);
+ handler.HandleNextMessage();
+ ExpectSubstringF(
+ handler.msg(),
+ "{\"type\":\"RetainingPath\",\"id\":\"retaining_path\",\"length\":1,"
+ "\"elements\":[{\"index\":0,\"value\":{\"type\":\"@Array\"");
+
+ // Retaining path missing limit.
+ service_msg = Eval(
+ lib,
+ "[port, ['objects', '$validId', 'retaining_path'], [], []]");
+ Service::HandleIsolateMessage(isolate, service_msg);
+ handler.HandleNextMessage();
+ ExpectSubstringF(handler.msg(), "{\"type\":\"Error\"");
+
// eval against list containing an internal object.
Object& internal_object = Object::Handle();
internal_object = LiteralToken::New();
« 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