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

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

Issue 11369203: Fix debugger test (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | Annotate | Revision Log
« 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 "include/dart_debugger_api.h" 5 #include "include/dart_debugger_api.h"
6 #include "platform/assert.h" 6 #include "platform/assert.h"
7 #include "vm/dart_api_impl.h" 7 #include "vm/dart_api_impl.h"
8 #include "vm/thread.h" 8 #include "vm/thread.h"
9 #include "vm/unit_test.h" 9 #include "vm/unit_test.h"
10 10
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 int64_t int_value = 0; 623 int64_t int_value = 0;
624 Dart_IntegerToInt64(retval, &int_value); 624 Dart_IntegerToInt64(retval, &int_value);
625 EXPECT_EQ(442, int_value); 625 EXPECT_EQ(442, int_value);
626 EXPECT_EQ(2, breakpoint_hit_counter); 626 EXPECT_EQ(2, breakpoint_hit_counter);
627 } 627 }
628 628
629 629
630 static void ExprClosureBreakpointHandler(Dart_IsolateId isolate_id, 630 static void ExprClosureBreakpointHandler(Dart_IsolateId isolate_id,
631 Dart_Breakpoint bpt, 631 Dart_Breakpoint bpt,
632 Dart_StackTrace trace) { 632 Dart_StackTrace trace) {
633 static const char* expected_trace[] = {"add", "main"}; 633 static const char* expected_trace[] = {"<anonymous closure>", "main"};
634 Dart_Handle add_locals = Dart_NewList(4); 634 Dart_Handle add_locals = Dart_NewList(4);
635 Dart_ListSetAt(add_locals, 0, NewString("a")); 635 Dart_ListSetAt(add_locals, 0, NewString("a"));
636 Dart_ListSetAt(add_locals, 1, Dart_NewInteger(10)); 636 Dart_ListSetAt(add_locals, 1, Dart_NewInteger(10));
637 Dart_ListSetAt(add_locals, 2, NewString("b")); 637 Dart_ListSetAt(add_locals, 2, NewString("b"));
638 Dart_ListSetAt(add_locals, 3, Dart_NewInteger(20)); 638 Dart_ListSetAt(add_locals, 3, Dart_NewInteger(20));
639 Dart_Handle expected_locals[] = {add_locals, Dart_Null()}; 639 Dart_Handle expected_locals[] = {add_locals, Dart_Null()};
640 breakpoint_hit_counter++; 640 breakpoint_hit_counter++;
641 PrintStackTrace(trace); 641 PrintStackTrace(trace);
642 VerifyStackTrace(trace, expected_trace, expected_locals, 2); 642 VerifyStackTrace(trace, expected_trace, expected_locals, 2);
643 } 643 }
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
1220 while (interrupt_isolate_id != ILLEGAL_ISOLATE_ID) { 1220 while (interrupt_isolate_id != ILLEGAL_ISOLATE_ID) {
1221 ml.Wait(); 1221 ml.Wait();
1222 } 1222 }
1223 } 1223 }
1224 EXPECT(interrupt_isolate_id == ILLEGAL_ISOLATE_ID); 1224 EXPECT(interrupt_isolate_id == ILLEGAL_ISOLATE_ID);
1225 } 1225 }
1226 1226
1227 #endif // defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64). 1227 #endif // defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64).
1228 1228
1229 } // namespace dart 1229 } // 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