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 1448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1459 Service::HandleIsolateMessage(isolate, service_msg); | 1459 Service::HandleIsolateMessage(isolate, service_msg); |
1460 handler.HandleNextMessage(); | 1460 handler.HandleNextMessage(); |
1461 // Expect error (tags required). | 1461 // Expect error (tags required). |
1462 EXPECT_SUBSTRING("\"type\":\"Error\"", handler.msg()); | 1462 EXPECT_SUBSTRING("\"type\":\"Error\"", handler.msg()); |
1463 | 1463 |
1464 service_msg = | 1464 service_msg = |
1465 Eval(lib, "[0, port, 'getCpuProfile', ['tags'], ['None']]"); | 1465 Eval(lib, "[0, port, 'getCpuProfile', ['tags'], ['None']]"); |
1466 Service::HandleIsolateMessage(isolate, service_msg); | 1466 Service::HandleIsolateMessage(isolate, service_msg); |
1467 handler.HandleNextMessage(); | 1467 handler.HandleNextMessage(); |
1468 // Expect profile | 1468 // Expect profile |
1469 EXPECT_SUBSTRING("\"type\":\"CpuProfile\"", handler.msg()); | 1469 EXPECT_SUBSTRING("\"type\":\"_CpuProfile\"", handler.msg()); |
1470 | 1470 |
1471 service_msg = | 1471 service_msg = |
1472 Eval(lib, "[0, port, 'getCpuProfile', ['tags'], ['Bogus']]"); | 1472 Eval(lib, "[0, port, 'getCpuProfile', ['tags'], ['Bogus']]"); |
1473 Service::HandleIsolateMessage(isolate, service_msg); | 1473 Service::HandleIsolateMessage(isolate, service_msg); |
1474 handler.HandleNextMessage(); | 1474 handler.HandleNextMessage(); |
1475 // Expect error. | 1475 // Expect error. |
1476 EXPECT_SUBSTRING("\"type\":\"Error\"", handler.msg()); | 1476 EXPECT_SUBSTRING("\"type\":\"Error\"", handler.msg()); |
1477 } | 1477 } |
1478 | 1478 |
1479 #endif // !defined(TARGET_ARCH_ARM64) | 1479 #endif // !defined(TARGET_ARCH_ARM64) |
1480 | 1480 |
1481 } // namespace dart | 1481 } // namespace dart |
OLD | NEW |