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/dartutils.h" | 7 #include "bin/dartutils.h" |
8 #include "bin/file.h" | 8 #include "bin/file.h" |
9 #include "bin/platform.h" | 9 #include "bin/platform.h" |
10 | 10 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 // exclude the last argument which is the test name. | 101 // exclude the last argument which is the test name. |
102 dart_argc = argc - 2; | 102 dart_argc = argc - 2; |
103 dart_argv = &argv[1]; | 103 dart_argv = &argv[1]; |
104 } | 104 } |
105 bool set_vm_flags_success = Flags::ProcessCommandLineFlags(dart_argc, | 105 bool set_vm_flags_success = Flags::ProcessCommandLineFlags(dart_argc, |
106 dart_argv); | 106 dart_argv); |
107 ASSERT(set_vm_flags_success); | 107 ASSERT(set_vm_flags_success); |
108 const char* err_msg = Dart::InitOnce(dart::bin::vm_isolate_snapshot_buffer, | 108 const char* err_msg = Dart::InitOnce(dart::bin::vm_isolate_snapshot_buffer, |
109 NULL, NULL, | 109 NULL, NULL, |
110 NULL, NULL, | 110 NULL, NULL, |
| 111 NULL, |
111 dart::bin::DartUtils::OpenFile, | 112 dart::bin::DartUtils::OpenFile, |
112 dart::bin::DartUtils::ReadFile, | 113 dart::bin::DartUtils::ReadFile, |
113 dart::bin::DartUtils::WriteFile, | 114 dart::bin::DartUtils::WriteFile, |
114 dart::bin::DartUtils::CloseFile, | 115 dart::bin::DartUtils::CloseFile, |
115 NULL, | 116 NULL, |
116 NULL); | 117 NULL); |
117 ASSERT(err_msg == NULL); | 118 ASSERT(err_msg == NULL); |
118 // Apply the filter to all registered tests. | 119 // Apply the filter to all registered tests. |
119 TestCaseBase::RunAll(); | 120 TestCaseBase::RunAll(); |
120 // Apply the filter to all registered benchmarks. | 121 // Apply the filter to all registered benchmarks. |
(...skipping 16 matching lines...) Expand all Loading... |
137 } | 138 } |
138 return 0; | 139 return 0; |
139 } | 140 } |
140 | 141 |
141 } // namespace dart | 142 } // namespace dart |
142 | 143 |
143 | 144 |
144 int main(int argc, const char** argv) { | 145 int main(int argc, const char** argv) { |
145 return dart::Main(argc, argv); | 146 return dart::Main(argc, argv); |
146 } | 147 } |
OLD | NEW |