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

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

Issue 488233003: More service api cleanup. camelCasePropertyNames (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: gen js, etc. Created 6 years, 3 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 | Annotate | Revision Log
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 "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 1435 matching lines...) Expand 10 before | Expand all | Expand 10 after
1446 vmlib.index()); 1446 vmlib.index());
1447 1447
1448 service_msg = Eval(lib, buf); 1448 service_msg = Eval(lib, buf);
1449 Service::HandleIsolateMessage(isolate, service_msg); 1449 Service::HandleIsolateMessage(isolate, service_msg);
1450 handler.HandleNextMessage(); 1450 handler.HandleNextMessage();
1451 OS::SNPrint(buf, sizeof(buf), 1451 OS::SNPrint(buf, sizeof(buf),
1452 "{\"type\":\"Script\"," 1452 "{\"type\":\"Script\","
1453 "\"id\":\"libraries\\/%" Pd "\\/scripts\\/test-lib\"," 1453 "\"id\":\"libraries\\/%" Pd "\\/scripts\\/test-lib\","
1454 "\"name\":\"test-lib\"," 1454 "\"name\":\"test-lib\","
1455 "\"kind\":\"script\"," 1455 "\"kind\":\"script\","
1456 "\"owning_library\":{\"type\":\"@Library\"," 1456 "\"owningLibrary\":{\"type\":\"@Library\","
1457 "\"id\":\"libraries\\/%" Pd "\",\"name\":\"\"," 1457 "\"id\":\"libraries\\/%" Pd "\",\"name\":\"\","
1458 "\"url\":\"test-lib\"}," 1458 "\"url\":\"test-lib\"},"
1459 "\"source\":\"var port;\\n\\nmain() {\\n}\"," 1459 "\"source\":\"var port;\\n\\nmain() {\\n}\","
1460 "\"tokenPosTable\":[[1,0,1,1,5,2,9],[3,5,1,6,5,7,6,8,8],[4,10,1]]}", 1460 "\"tokenPosTable\":[[1,0,1,1,5,2,9],[3,5,1,6,5,7,6,8,8],[4,10,1]]}",
1461 vmlib.index(), vmlib.index()); 1461 vmlib.index(), vmlib.index());
1462 EXPECT_STREQ(buf, handler.msg()); 1462 EXPECT_STREQ(buf, handler.msg());
1463 } 1463 }
1464 1464
1465 1465
1466 // TODO(zra): Remove when tests are ready to enable. 1466 // TODO(zra): Remove when tests are ready to enable.
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
2024 service_msg = Eval(lib, "[0, port, ['profile'], ['tags'], ['hidden']]"); 2024 service_msg = Eval(lib, "[0, port, ['profile'], ['tags'], ['hidden']]");
2025 Service::HandleIsolateMessage(isolate, service_msg); 2025 Service::HandleIsolateMessage(isolate, service_msg);
2026 handler.HandleNextMessage(); 2026 handler.HandleNextMessage();
2027 // Expect error. 2027 // Expect error.
2028 EXPECT_SUBSTRING("\"type\":\"Error\"", handler.msg()); 2028 EXPECT_SUBSTRING("\"type\":\"Error\"", handler.msg());
2029 } 2029 }
2030 2030
2031 #endif // !defined(TARGET_ARCH_ARM64) 2031 #endif // !defined(TARGET_ARCH_ARM64)
2032 2032
2033 } // namespace dart 2033 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/service/protocol.md ('k') | tests/standalone/vmservice/isolate_class_field_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698