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

Unified Diff: runtime/vm/service_test.cc

Issue 812123002: Add option to get only reference. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years 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 42442)
+++ runtime/vm/service_test.cc (working copy)
@@ -2155,12 +2155,17 @@
for (int offset = 0; offset < kObjectAlignment; ++offset) {
uword addr = start_addr + offset;
char buf[1024];
+ bool ref = offset % 2 == 0;
OS::SNPrint(buf, sizeof(buf),
- "[0, port, ['address', '%" Px "'], [], []]", addr);
+ ref ? "[0, port, ['address', '%" Px "'], ['ref'], ['true']]" :
+ "[0, port, ['address', '%" Px "', ], [], []]",
+ addr);
service_msg = Eval(lib, buf);
Service::HandleIsolateMessage(isolate, service_msg);
handler.HandleNextMessage();
- EXPECT_SUBSTRING("\"type\":\"String\"", handler.msg());
+ EXPECT_SUBSTRING(ref ? "\"type\":\"@String\"" :
+ "\"type\":\"String\"",
+ handler.msg());
EXPECT_SUBSTRING("foobar", handler.msg());
}
// Expect null when no object is found.
« 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