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

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

Issue 274043003: Adds debugger patching to arm64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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/debugger_arm64.cc ('k') | runtime/vm/flow_graph_compiler_arm64.cc » ('j') | 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 // TODO(zra): Remove when tests are ready to enable.
6 #include "platform/globals.h"
7 #if !defined(TARGET_ARCH_ARM64)
8
9 #include "vm/debugger.h" 5 #include "vm/debugger.h"
10 #include "vm/unit_test.h" 6 #include "vm/unit_test.h"
11 7
12 namespace dart { 8 namespace dart {
13 9
14 TEST_CASE(Debugger_PrintBreakpointsToJSONArray) { 10 TEST_CASE(Debugger_PrintBreakpointsToJSONArray) {
15 const char* kScriptChars = 11 const char* kScriptChars =
16 "main() {\n" 12 "main() {\n"
17 " var x = new StringBuffer();\n" 13 " var x = new StringBuffer();\n"
18 " x.add('won');\n" 14 " x.add('won');\n"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 debugger->SetBreakpointAtLine(url, 2); 98 debugger->SetBreakpointAtLine(url, 2);
103 Dart_Handle result = Dart_Invoke(lib, NewString("main"), 0, NULL); 99 Dart_Handle result = Dart_Invoke(lib, NewString("main"), 0, NULL);
104 EXPECT_VALID(result); 100 EXPECT_VALID(result);
105 EXPECT(Dart_IsString(result)); 101 EXPECT(Dart_IsString(result));
106 102
107 // We ran the code in InspectPausedEvent. 103 // We ran the code in InspectPausedEvent.
108 EXPECT(saw_paused_event); 104 EXPECT(saw_paused_event);
109 } 105 }
110 106
111 } // namespace dart 107 } // namespace dart
112
113 #endif // !defined(TARGET_ARCH_ARM64)
OLDNEW
« no previous file with comments | « runtime/vm/debugger_arm64.cc ('k') | runtime/vm/flow_graph_compiler_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698