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

Side by Side Diff: tools/testing/dart/lib/utils.dart

Issue 841193003: cleanup to tools/testing/dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: one last bit Created 5 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « tools/testing/dart/lib/test_utils.dart ('k') | tools/testing/dart/multitest.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library utils; 5 library utils;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 import 'dart:convert'; 8 import 'dart:convert';
9 9
10 import 'path.dart'; 10 import 'path.dart';
11 11
12 final RegExp dartExtension = new RegExp(r'\.dart$');
13
14 typedef void CreateTest(Path filePath,
15 Path originTestPath,
16 bool hasCompileError,
17 bool hasRuntimeError,
18 {bool isNegativeIfChecked,
19 bool hasCompileErrorIfChecked,
20 bool hasStaticWarning,
21 String multitestKey});
22
12 // This is the maximum time we expect stdout/stderr of subprocesses to deliver 23 // This is the maximum time we expect stdout/stderr of subprocesses to deliver
13 // data after we've got the exitCode. 24 // data after we've got the exitCode.
14 const Duration MAX_STDIO_DELAY = const Duration(seconds: 30); 25 const Duration MAX_STDIO_DELAY = const Duration(seconds: 30);
15 26
16 String MAX_STDIO_DELAY_PASSED_MESSAGE = 27 String MAX_STDIO_DELAY_PASSED_MESSAGE =
17 """Not waiting for stdout/stderr from subprocess anymore 28 """Not waiting for stdout/stderr from subprocess anymore
18 ($MAX_STDIO_DELAY passed). Please note that this could be an indicator 29 ($MAX_STDIO_DELAY passed). Please note that this could be an indicator
19 that there is a hanging process which we were unable to kill."""; 30 that there is a hanging process which we were unable to kill.""";
20 31
21 class DebugLogger { 32 class DebugLogger {
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 312
302 class UniqueObject { 313 class UniqueObject {
303 static int _nextId = 1; 314 static int _nextId = 1;
304 final int _hashCode; 315 final int _hashCode;
305 316
306 int get hashCode => _hashCode; 317 int get hashCode => _hashCode;
307 operator==(other) => other is UniqueObject && _hashCode == other._hashCode; 318 operator==(other) => other is UniqueObject && _hashCode == other._hashCode;
308 319
309 UniqueObject() : _hashCode = ++_nextId; 320 UniqueObject() : _hashCode = ++_nextId;
310 } 321 }
OLDNEW
« no previous file with comments | « tools/testing/dart/lib/test_utils.dart ('k') | tools/testing/dart/multitest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698