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

Side by Side Diff: runtime/vm/debugger_test.cc

Issue 2877293002: Fix test by using private_key parameter. (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 #include "vm/dart_api_impl.h" 5 #include "vm/dart_api_impl.h"
6 #include "vm/dart_api_message.h" 6 #include "vm/dart_api_message.h"
7 #include "vm/debugger.h" 7 #include "vm/debugger.h"
8 #include "vm/message.h" 8 #include "vm/message.h"
9 #include "vm/unit_test.h" 9 #include "vm/unit_test.h"
10 10
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 JSONStream js; 148 JSONStream js;
149 { 149 {
150 JSONArray jsarr(&js); 150 JSONArray jsarr(&js);
151 debugger->PrintBreakpointsToJSONArray(&jsarr); 151 debugger->PrintBreakpointsToJSONArray(&jsarr);
152 } 152 }
153 ExpectSubstringF( 153 ExpectSubstringF(
154 js.ToCString(), 154 js.ToCString(),
155 "[{\"type\":\"Breakpoint\",\"fixedId\":true,\"id\":\"breakpoints\\/" 155 "[{\"type\":\"Breakpoint\",\"fixedId\":true,\"id\":\"breakpoints\\/"
156 "2\",\"breakpointNumber\":2,\"resolved\":false,\"location\":{\"type\":" 156 "2\",\"breakpointNumber\":2,\"resolved\":false,\"location\":{\"type\":"
157 "\"UnresolvedSourceLocation\",\"script\":{\"type\":\"@Script\"," 157 "\"UnresolvedSourceLocation\",\"script\":{\"type\":\"@Script\","
158 "\"fixedId\":true,\"id\":\"libraries\\/@15247669\\/scripts\\/" 158 "\"fixedId\":true,\"id\":\"libraries\\/%s\\/scripts\\/"
159 "test-lib\\/" 159 "test-lib\\/"
160 "0\",\"uri\":\"test-lib\",\"_kind\":\"script\"},\"line\":3}},{\"type\":" 160 "0\",\"uri\":\"test-lib\",\"_kind\":\"script\"},\"line\":3}},{\"type\":"
161 "\"Breakpoint\",\"fixedId\":true,\"id\":\"breakpoints\\/" 161 "\"Breakpoint\",\"fixedId\":true,\"id\":\"breakpoints\\/"
162 "1\",\"breakpointNumber\":1,\"resolved\":false,\"location\":{\"type\":" 162 "1\",\"breakpointNumber\":1,\"resolved\":false,\"location\":{\"type\":"
163 "\"UnresolvedSourceLocation\",\"script\":{\"type\":\"@Script\"," 163 "\"UnresolvedSourceLocation\",\"script\":{\"type\":\"@Script\","
164 "\"fixedId\":true,\"id\":\"libraries\\/@15247669\\/scripts\\/" 164 "\"fixedId\":true,\"id\":\"libraries\\/%s\\/scripts\\/"
165 "test-lib\\/" 165 "test-lib\\/"
166 "0\",\"uri\":\"test-lib\",\"_kind\":\"script\"},\"line\":2}},{\"type\":" 166 "0\",\"uri\":\"test-lib\",\"_kind\":\"script\"},\"line\":2}},{\"type\":"
167 "\"Breakpoint\",\"fixedId\":true,\"id\":\"breakpoints\\/" 167 "\"Breakpoint\",\"fixedId\":true,\"id\":\"breakpoints\\/"
168 "3\",\"breakpointNumber\":3,\"resolved\":false,\"location\":{\"type\":" 168 "3\",\"breakpointNumber\":3,\"resolved\":false,\"location\":{\"type\":"
169 "\"UnresolvedSourceLocation\",\"scriptUri\":\"not_yet_loaded_script_" 169 "\"UnresolvedSourceLocation\",\"scriptUri\":\"not_yet_loaded_script_"
170 "uri\",\"line\":4}}]", 170 "uri\",\"line\":4}}]",
171 private_key.ToCString(), private_key.ToCString()); 171 private_key.ToCString(), private_key.ToCString());
172 } 172 }
173 } 173 }
174 174
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 "enter(bar1) enter(bar2) enter(bar3) enter(foo) " 504 "enter(bar1) enter(bar2) enter(bar3) enter(foo) "
505 "enter(bar3) enter(foo) " 505 "enter(bar3) enter(foo) "
506 "exit(foo) exit(bar3) exit(bar2) exit(bar1) ", 506 "exit(foo) exit(bar3) exit(bar2) exit(bar1) ",
507 result_cstr); 507 result_cstr);
508 EXPECT(saw_paused_event); 508 EXPECT(saw_paused_event);
509 } 509 }
510 510
511 #endif // !PRODUCT 511 #endif // !PRODUCT
512 512
513 } // namespace dart 513 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698