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 <stdio.h> | 5 #include <stdio.h> |
6 | 6 |
7 #include "bin/file.h" | 7 #include "bin/file.h" |
8 #include "bin/dartutils.h" | |
9 #include "bin/platform.h" | |
10 | 8 |
11 #include "vm/benchmark_test.h" | 9 #include "vm/benchmark_test.h" |
12 #include "vm/dart.h" | 10 #include "vm/dart.h" |
| 11 #include "bin/dartutils.h" |
13 #include "vm/unit_test.h" | 12 #include "vm/unit_test.h" |
14 | 13 |
15 | 14 |
16 // TODO(iposva, asiva): This is a placeholder for the real unittest framework. | 15 // TODO(iposva, asiva): This is a placeholder for the real unittest framework. |
17 namespace dart { | 16 namespace dart { |
18 | 17 |
19 // vm_isolate_snapshot_buffer points to a snapshot for the vm isolate if we | 18 // vm_isolate_snapshot_buffer points to a snapshot for the vm isolate if we |
20 // link in a snapshot otherwise it is initialized to NULL. | 19 // link in a snapshot otherwise it is initialized to NULL. |
21 extern const uint8_t* bin::vm_isolate_snapshot_buffer; | 20 extern const uint8_t* bin::vm_isolate_snapshot_buffer; |
22 | 21 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 fprintf(stderr, "No tests matched: %s\n", run_filter); | 126 fprintf(stderr, "No tests matched: %s\n", run_filter); |
128 return 1; | 127 return 1; |
129 } | 128 } |
130 return 0; | 129 return 0; |
131 } | 130 } |
132 | 131 |
133 } // namespace dart | 132 } // namespace dart |
134 | 133 |
135 | 134 |
136 int main(int argc, const char** argv) { | 135 int main(int argc, const char** argv) { |
137 dart::bin::Platform::Exit(dart::Main(argc, argv)); | 136 return dart::Main(argc, argv); |
138 } | 137 } |
OLD | NEW |