| OLD | NEW |
| 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 "vm/unit_test.h" | 5 #include "vm/unit_test.h" |
| 6 | 6 |
| 7 #include <stdio.h> | 7 #include <stdio.h> |
| 8 | 8 |
| 9 #include "bin/builtin.h" | 9 #include "bin/builtin.h" |
| 10 #include "bin/dartutils.h" | 10 #include "bin/dartutils.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 while (test != NULL) { | 47 while (test != NULL) { |
| 48 test->RunTest(); | 48 test->RunTest(); |
| 49 test = test->next_; | 49 test = test->next_; |
| 50 } | 50 } |
| 51 } | 51 } |
| 52 | 52 |
| 53 | 53 |
| 54 Dart_Isolate TestCase::CreateIsolate(const uint8_t* buffer, const char* name) { | 54 Dart_Isolate TestCase::CreateIsolate(const uint8_t* buffer, const char* name) { |
| 55 char* err; | 55 char* err; |
| 56 Dart_Isolate isolate = | 56 Dart_Isolate isolate = |
| 57 Dart_CreateIsolate(name, NULL, buffer, NULL, NULL, &err); | 57 Dart_CreateIsolate(name, NULL, buffer, NULL, NULL, NULL, &err); |
| 58 if (isolate == NULL) { | 58 if (isolate == NULL) { |
| 59 OS::Print("Creation of isolate failed '%s'\n", err); | 59 OS::Print("Creation of isolate failed '%s'\n", err); |
| 60 free(err); | 60 free(err); |
| 61 } | 61 } |
| 62 EXPECT(isolate != NULL); | 62 EXPECT(isolate != NULL); |
| 63 return isolate; | 63 return isolate; |
| 64 } | 64 } |
| 65 | 65 |
| 66 | 66 |
| 67 static const char* kPackageScheme = "package:"; | 67 static const char* kPackageScheme = "package:"; |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 } | 479 } |
| 480 // Copy the remainder of in to out. | 480 // Copy the remainder of in to out. |
| 481 while (*in != '\0') { | 481 while (*in != '\0') { |
| 482 *out++ = *in++; | 482 *out++ = *in++; |
| 483 } | 483 } |
| 484 *out = '\0'; | 484 *out = '\0'; |
| 485 } | 485 } |
| 486 | 486 |
| 487 | 487 |
| 488 } // namespace dart | 488 } // namespace dart |
| OLD | NEW |