| 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" | 8 #include "bin/dartutils.h" |
| 9 #include "bin/platform.h" | 9 #include "bin/platform.h" |
| 10 | 10 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 run_filter = argv[argc - 1]; | 99 run_filter = argv[argc - 1]; |
| 100 // Remove the first value (executable) from the arguments and | 100 // Remove the first value (executable) from the arguments and |
| 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, | 109 NULL, NULL, |
| 110 NULL, NULL, | 110 NULL, NULL, |
| 111 dart::bin::DartUtils::OpenFile, | 111 dart::bin::DartUtils::OpenFile, |
| 112 dart::bin::DartUtils::ReadFile, | 112 dart::bin::DartUtils::ReadFile, |
| 113 dart::bin::DartUtils::WriteFile, | 113 dart::bin::DartUtils::WriteFile, |
| 114 dart::bin::DartUtils::CloseFile, | 114 dart::bin::DartUtils::CloseFile, |
| 115 NULL, | 115 NULL, |
| 116 NULL); | 116 NULL); |
| 117 ASSERT(err_msg == NULL); | 117 ASSERT(err_msg == NULL); |
| 118 // Apply the filter to all registered tests. | 118 // Apply the filter to all registered tests. |
| 119 TestCaseBase::RunAll(); | 119 TestCaseBase::RunAll(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 137 } | 137 } |
| 138 return 0; | 138 return 0; |
| 139 } | 139 } |
| 140 | 140 |
| 141 } // namespace dart | 141 } // namespace dart |
| 142 | 142 |
| 143 | 143 |
| 144 int main(int argc, const char** argv) { | 144 int main(int argc, const char** argv) { |
| 145 return dart::Main(argc, argv); | 145 return dart::Main(argc, argv); |
| 146 } | 146 } |
| OLD | NEW |