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

Unified Diff: runtime/vm/debugger_test.cc

Issue 2703373010: Change Library service protocol ids (Closed)
Patch Set: fix test Created 3 years, 10 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 | « no previous file | runtime/vm/object_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/debugger_test.cc
diff --git a/runtime/vm/debugger_test.cc b/runtime/vm/debugger_test.cc
index a660e7ad4d4eac687964f43c99028e9034c2deea..b991697da417caf3e1a183f420a53f0dbcca23f4 100644
--- a/runtime/vm/debugger_test.cc
+++ b/runtime/vm/debugger_test.cc
@@ -53,6 +53,7 @@ TEST_CASE(Debugger_PrintBreakpointsToJSONArray) {
Library& vmlib = Library::Handle();
vmlib ^= Api::UnwrapHandle(lib);
EXPECT(!vmlib.IsNull());
+ const String& private_key = String::Handle(vmlib.private_key());
Isolate* isolate = Isolate::Current();
Debugger* debugger = isolate->debugger();
@@ -83,7 +84,7 @@ TEST_CASE(Debugger_PrintBreakpointsToJSONArray) {
"\"breakpointNumber\":2,\"resolved\":false,"
"\"location\":{\"type\":\"UnresolvedSourceLocation\","
"\"script\":{\"type\":\"@Script\",\"fixedId\":true,"
- "\"id\":\"libraries\\/%" Pd
+ "\"id\":\"libraries\\/%s"
"\\/scripts\\/test-lib\\/0\","
"\"uri\":\"test-lib\","
"\"_kind\":\"script\"},\"line\":3}},"
@@ -91,11 +92,11 @@ TEST_CASE(Debugger_PrintBreakpointsToJSONArray) {
"\"breakpointNumber\":1,\"resolved\":false,"
"\"location\":{\"type\":\"UnresolvedSourceLocation\","
"\"script\":{\"type\":\"@Script\",\"fixedId\":true,"
- "\"id\":\"libraries\\/%" Pd
+ "\"id\":\"libraries\\/%s"
"\\/scripts\\/test-lib\\/0\","
"\"uri\":\"test-lib\","
"\"_kind\":\"script\"},\"line\":2}}]",
- vmlib.index(), vmlib.index());
+ private_key.ToCString(), private_key.ToCString());
}
}
« no previous file with comments | « no previous file | runtime/vm/object_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698