OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 #ifndef VM_UNIT_TEST_H_ | 5 #ifndef VM_UNIT_TEST_H_ |
6 #define VM_UNIT_TEST_H_ | 6 #define VM_UNIT_TEST_H_ |
7 | 7 |
8 #include "include/dart_native_api.h" | 8 #include "include/dart_native_api.h" |
9 | 9 |
10 #include "platform/globals.h" | 10 #include "platform/globals.h" |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 Dart_Handle library, | 279 Dart_Handle library, |
280 Dart_Handle url); | 280 Dart_Handle url); |
281 static char* BigintToHexValue(Dart_CObject* bigint); | 281 static char* BigintToHexValue(Dart_CObject* bigint); |
282 | 282 |
283 virtual void Run(); | 283 virtual void Run(); |
284 | 284 |
285 private: | 285 private: |
286 static Dart_Isolate CreateIsolate(const uint8_t* buffer, | 286 static Dart_Isolate CreateIsolate(const uint8_t* buffer, |
287 const char* name) { | 287 const char* name) { |
288 char* err; | 288 char* err; |
289 Dart_Isolate isolate = Dart_CreateIsolate(name, NULL, buffer, NULL, &err); | 289 Dart_Isolate isolate = Dart_CreateIsolate( |
| 290 name, NULL, buffer, NULL, NULL, &err); |
290 if (isolate == NULL) { | 291 if (isolate == NULL) { |
291 OS::Print("Creation of isolate failed '%s'\n", err); | 292 OS::Print("Creation of isolate failed '%s'\n", err); |
292 free(err); | 293 free(err); |
293 } | 294 } |
294 EXPECT(isolate != NULL); | 295 EXPECT(isolate != NULL); |
295 return isolate; | 296 return isolate; |
296 } | 297 } |
297 | 298 |
298 RunEntry* const run_; | 299 RunEntry* const run_; |
299 }; | 300 }; |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 } \ | 424 } \ |
424 } else { \ | 425 } else { \ |
425 dart::Expect(__FILE__, __LINE__).Fail("expected True, but was '%s'\n", \ | 426 dart::Expect(__FILE__, __LINE__).Fail("expected True, but was '%s'\n", \ |
426 #handle); \ | 427 #handle); \ |
427 } \ | 428 } \ |
428 } while (0) | 429 } while (0) |
429 | 430 |
430 } // namespace dart | 431 } // namespace dart |
431 | 432 |
432 #endif // VM_UNIT_TEST_H_ | 433 #endif // VM_UNIT_TEST_H_ |
OLD | NEW |