| OLD | NEW |
| 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 "platform/globals.h" | 5 #include "platform/globals.h" |
| 6 | 6 |
| 7 #include "include/dart_debugger_api.h" | 7 #include "include/dart_debugger_api.h" |
| 8 #include "vm/dart_api_impl.h" | 8 #include "vm/dart_api_impl.h" |
| 9 #include "vm/dart_entry.h" | 9 #include "vm/dart_entry.h" |
| 10 #include "vm/debugger.h" | 10 #include "vm/debugger.h" |
| (...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 833 "\"option_keys\":[],\"option_values\":[]}}", handler.msg()); | 833 "\"option_keys\":[],\"option_values\":[]}}", handler.msg()); |
| 834 | 834 |
| 835 // Request the class A over the service. | 835 // Request the class A over the service. |
| 836 service_msg = EvalF(h_lib, "[0, port, ['classes', '%" Pd "'], [], []]", cid); | 836 service_msg = EvalF(h_lib, "[0, port, ['classes', '%" Pd "'], [], []]", cid); |
| 837 Service::HandleIsolateMessage(isolate, service_msg); | 837 Service::HandleIsolateMessage(isolate, service_msg); |
| 838 handler.HandleNextMessage(); | 838 handler.HandleNextMessage(); |
| 839 EXPECT_SUBSTRING("\"type\":\"Class\"", handler.msg()); | 839 EXPECT_SUBSTRING("\"type\":\"Class\"", handler.msg()); |
| 840 ExpectSubstringF(handler.msg(), | 840 ExpectSubstringF(handler.msg(), |
| 841 "\"id\":\"classes\\/%" Pd "\",\"name\":\"A\",", cid); | 841 "\"id\":\"classes\\/%" Pd "\",\"name\":\"A\",", cid); |
| 842 ExpectSubstringF(handler.msg(), "\"allocationStats\":"); | 842 ExpectSubstringF(handler.msg(), "\"allocationStats\":"); |
| 843 ExpectSubstringF(handler.msg(), "\"tokenPos\":"); |
| 844 ExpectSubstringF(handler.msg(), "\"endTokenPos\":"); |
| 843 | 845 |
| 844 // Evaluate an expression from class A. | 846 // Evaluate an expression from class A. |
| 845 service_msg = EvalF(h_lib, | 847 service_msg = EvalF(h_lib, |
| 846 "[0, port, ['classes', '%" Pd "', 'eval'], " | 848 "[0, port, ['classes', '%" Pd "', 'eval'], " |
| 847 "['expr'], ['cobra + 100000']]", cid); | 849 "['expr'], ['cobra + 100000']]", cid); |
| 848 Service::HandleIsolateMessage(isolate, service_msg); | 850 Service::HandleIsolateMessage(isolate, service_msg); |
| 849 handler.HandleNextMessage(); | 851 handler.HandleNextMessage(); |
| 850 handler.filterMsg("name"); | 852 handler.filterMsg("name"); |
| 851 EXPECT_STREQ( | 853 EXPECT_STREQ( |
| 852 "{\"type\":\"@Smi\"," | 854 "{\"type\":\"@Smi\"," |
| (...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1799 service_msg = Eval(h_lib, "[0, port, ['profile'], ['tags'], ['hidden']]"); | 1801 service_msg = Eval(h_lib, "[0, port, ['profile'], ['tags'], ['hidden']]"); |
| 1800 Service::HandleIsolateMessage(isolate, service_msg); | 1802 Service::HandleIsolateMessage(isolate, service_msg); |
| 1801 handler.HandleNextMessage(); | 1803 handler.HandleNextMessage(); |
| 1802 // Expect error. | 1804 // Expect error. |
| 1803 EXPECT_SUBSTRING("\"type\":\"Error\"", handler.msg()); | 1805 EXPECT_SUBSTRING("\"type\":\"Error\"", handler.msg()); |
| 1804 } | 1806 } |
| 1805 | 1807 |
| 1806 #endif // !defined(TARGET_ARCH_ARM64) | 1808 #endif // !defined(TARGET_ARCH_ARM64) |
| 1807 | 1809 |
| 1808 } // namespace dart | 1810 } // namespace dart |
| OLD | NEW |