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

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

Issue 113513004: Handle vmservice messages while at breakpoint. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 "include/dart_debugger_api.h" 5 #include "include/dart_debugger_api.h"
6 #include "include/dart_mirrors_api.h" 6 #include "include/dart_mirrors_api.h"
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/dart_api_impl.h" 8 #include "vm/dart_api_impl.h"
9 #include "vm/thread.h" 9 #include "vm/thread.h"
10 #include "vm/unit_test.h" 10 #include "vm/unit_test.h"
(...skipping 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 1293
1294 Dart_SetIsolateEventHandler(&TestIsolateID); 1294 Dart_SetIsolateEventHandler(&TestIsolateID);
1295 Dart_Isolate isolate = TestCase::CreateTestIsolate(); 1295 Dart_Isolate isolate = TestCase::CreateTestIsolate();
1296 ASSERT(isolate != NULL); 1296 ASSERT(isolate != NULL);
1297 Dart_EnterScope(); 1297 Dart_EnterScope();
1298 LoadScript(kScriptChars); 1298 LoadScript(kScriptChars);
1299 Dart_Handle retval = Invoke("main"); 1299 Dart_Handle retval = Invoke("main");
1300 EXPECT_VALID(retval); 1300 EXPECT_VALID(retval);
1301 EXPECT(test_isolate_id != ILLEGAL_ISOLATE_ID); 1301 EXPECT(test_isolate_id != ILLEGAL_ISOLATE_ID);
1302 EXPECT(Dart_GetIsolate(test_isolate_id) == isolate); 1302 EXPECT(Dart_GetIsolate(test_isolate_id) == isolate);
1303 EXPECT(Dart_GetIsolateId(isolate) == test_isolate_id);
1303 Dart_ExitScope(); 1304 Dart_ExitScope();
1304 Dart_ShutdownIsolate(); 1305 Dart_ShutdownIsolate();
1305 EXPECT(verify_callback == 0x5); // Only created and shutdown events. 1306 EXPECT(verify_callback == 0x5); // Only created and shutdown events.
1306 } 1307 }
1307 1308
1308 1309
1309 static Monitor* sync = NULL; 1310 static Monitor* sync = NULL;
1310 static bool isolate_interrupted = false; 1311 static bool isolate_interrupted = false;
1311 static Dart_IsolateId interrupt_isolate_id = ILLEGAL_ISOLATE_ID; 1312 static Dart_IsolateId interrupt_isolate_id = ILLEGAL_ISOLATE_ID;
1312 static volatile bool continue_isolate_loop = true; 1313 static volatile bool continue_isolate_loop = true;
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after
2058 2059
2059 Dart_Handle list_type = Dart_InstanceGetType(list_access_test_obj); 2060 Dart_Handle list_type = Dart_InstanceGetType(list_access_test_obj);
2060 Dart_Handle super_type = Dart_GetSupertype(list_type); 2061 Dart_Handle super_type = Dart_GetSupertype(list_type);
2061 EXPECT(!Dart_IsError(super_type)); 2062 EXPECT(!Dart_IsError(super_type));
2062 super_type = Dart_GetSupertype(super_type); 2063 super_type = Dart_GetSupertype(super_type);
2063 EXPECT(!Dart_IsError(super_type)); 2064 EXPECT(!Dart_IsError(super_type));
2064 EXPECT(super_type == Dart_Null()); 2065 EXPECT(super_type == Dart_Null());
2065 } 2066 }
2066 2067
2067 } // namespace dart 2068 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698