Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: tests/servicec/servicec_tests.dart

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 import 'dart:async' show 5 import 'dart:async' show
6 Future; 6 Future;
7 7
8 import 'dart:io' show 8 import 'dart:io' show
9 Directory, 9 Directory,
10 File, 10 File,
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 if (target.includes(Target.CC)) { 123 if (target.includes(Target.CC)) {
124 await checkDirectoryExists(outputDirectory + '/cc'); 124 await checkDirectoryExists(outputDirectory + '/cc');
125 } 125 }
126 } 126 }
127 127
128 Future checkDirectoryExists(String dirName) async { 128 Future checkDirectoryExists(String dirName) async {
129 var dir = new Directory(dirName); 129 var dir = new Directory(dirName);
130 Expect.isTrue(await dir.exists(), "Directory $dirName does not exist"); 130 Expect.isTrue(await dir.exists(), "Directory $dirName does not exist");
131 } 131 }
132 132
133 // TODO(stanm): Move cleanup logic to fletch_tests setup 133 // TODO(stanm): Move cleanup logic to dartino_tests setup
134 Future nukeDirectory(String dirName) async { 134 Future nukeDirectory(String dirName) async {
135 var dir = new Directory(dirName); 135 var dir = new Directory(dirName);
136 await dir.delete(recursive: true); 136 await dir.delete(recursive: true);
137 } 137 }
138 138
139 // Test entry point. 139 // Test entry point.
140 140
141 typedef Future NoArgFuture(); 141 typedef Future NoArgFuture();
142 142
143 Future<Map<String, NoArgFuture>> listTests() async { 143 Future<Map<String, NoArgFuture>> listTests() async {
144 var tests = <String, NoArgFuture>{}; 144 var tests = <String, NoArgFuture>{};
145 List<FileSystemEntity> files = new Directory(filesDirectory).listSync(); 145 List<FileSystemEntity> files = new Directory(filesDirectory).listSync();
146 for (File file in files) { 146 for (File file in files) {
147 String filename = file.path.split("/").last; 147 String filename = file.path.split("/").last;
148 String testname = filename.substring(0, filename.indexOf('.idl')); 148 String testname = filename.substring(0, filename.indexOf('.idl'));
149 tests['servicec/$testname'] = new FileTest(testname).perform; 149 tests['servicec/$testname'] = new FileTest(testname).perform;
150 } 150 }
151 151
152 for (Test test in SCANNER_TESTS) { 152 for (Test test in SCANNER_TESTS) {
153 tests['servicec/scanner/${test.name}'] = test.perform; 153 tests['servicec/scanner/${test.name}'] = test.perform;
154 } 154 }
155 155
156 tests['servicec/camelize'] = new CamelizeTest().perform; 156 tests['servicec/camelize'] = new CamelizeTest().perform;
157 return tests; 157 return tests;
158 } 158 }
OLDNEW
« no previous file with comments | « tests/service_tests/service_tests.dart ('k') | tests/snapshot_stacktrace_tests/coroutine_exception_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698