| OLD | NEW |
| 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/unit_test.h" | 8 #include "vm/unit_test.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 } | 312 } |
| 313 | 313 |
| 314 | 314 |
| 315 void TestStepIntoHandler(Dart_Breakpoint bpt, Dart_StackTrace trace) { | 315 void TestStepIntoHandler(Dart_Breakpoint bpt, Dart_StackTrace trace) { |
| 316 const char* expected_bpts[] = { | 316 const char* expected_bpts[] = { |
| 317 "main", | 317 "main", |
| 318 "foo", | 318 "foo", |
| 319 "f1", | 319 "f1", |
| 320 "foo", | 320 "foo", |
| 321 "X.X.", | 321 "X.X.", |
| 322 "Object.Object.", | |
| 323 "X.X.", | |
| 324 "foo", | 322 "foo", |
| 325 "X.kvmk", | 323 "X.kvmk", |
| 326 "f2", | 324 "f2", |
| 327 "X.kvmk", | 325 "X.kvmk", |
| 328 "IntegerImplementation.+", | |
| 329 "IntegerImplementation.addFromInteger", | |
| 330 "IntegerImplementation.+", | |
| 331 "X.kvmk", | |
| 332 "foo", | 326 "foo", |
| 333 "main" | 327 "main" |
| 334 }; | 328 }; |
| 335 const intptr_t expected_bpts_length = ARRAY_SIZE(expected_bpts); | 329 const intptr_t expected_bpts_length = ARRAY_SIZE(expected_bpts); |
| 336 intptr_t trace_len; | 330 intptr_t trace_len; |
| 337 Dart_Handle res = Dart_StackTraceLength(trace, &trace_len); | 331 Dart_Handle res = Dart_StackTraceLength(trace, &trace_len); |
| 338 EXPECT_NOT_ERROR(res); | 332 EXPECT_NOT_ERROR(res); |
| 339 EXPECT(breakpoint_hit_counter < expected_bpts_length); | 333 EXPECT(breakpoint_hit_counter < expected_bpts_length); |
| 340 Dart_ActivationFrame frame; | 334 Dart_ActivationFrame frame; |
| 341 res = Dart_GetActivationFrame(trace, 0, &frame); | 335 res = Dart_GetActivationFrame(trace, 0, &frame); |
| (...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1003 list_as_string = Dart_ToString(lib_list); | 997 list_as_string = Dart_ToString(lib_list); |
| 1004 list_cstr = ""; | 998 list_cstr = ""; |
| 1005 EXPECT_VALID(Dart_StringToCString(list_as_string, &list_cstr)); | 999 EXPECT_VALID(Dart_StringToCString(list_as_string, &list_cstr)); |
| 1006 EXPECT_SUBSTRING(TestCase::url(), list_cstr); | 1000 EXPECT_SUBSTRING(TestCase::url(), list_cstr); |
| 1007 } | 1001 } |
| 1008 | 1002 |
| 1009 | 1003 |
| 1010 #endif // defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64). | 1004 #endif // defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64). |
| 1011 | 1005 |
| 1012 } // namespace dart | 1006 } // namespace dart |
| OLD | NEW |