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

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

Issue 361743002: observatory/vm: add support for computing/passing end tokens on classes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix polymer include and add deployed/ Created 6 years, 5 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
« no previous file with comments | « runtime/vm/object_test.cc ('k') | 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) 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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/object_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698