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

Side by Side Diff: test/must_pub_get_test.dart

Issue 1556243002: Fix analyzer hints and warnings in test/. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 4 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
« no previous file with comments | « test/lock_file_test.dart ('k') | test/preprocess_test.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) 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'; 5 import 'dart:async';
6 import 'dart:convert';
7 import 'dart:io'; 6 import 'dart:io';
8 7
9 import 'package:path/path.dart' as p; 8 import 'package:path/path.dart' as p;
10 import 'package:pub/src/exit_codes.dart' as exit_codes; 9 import 'package:pub/src/exit_codes.dart' as exit_codes;
11 import 'package:pub/src/io.dart'; 10 import 'package:pub/src/io.dart';
12 import 'package:scheduled_test/scheduled_stream.dart'; 11 import 'package:scheduled_test/scheduled_stream.dart';
13 import 'package:scheduled_test/scheduled_test.dart'; 12 import 'package:scheduled_test/scheduled_test.dart';
14 13
15 import 'descriptor.dart' as d; 14 import 'descriptor.dart' as d;
16 import 'test_pub.dart'; 15 import 'test_pub.dart';
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 void _touch(String path) { 412 void _touch(String path) {
414 schedule(() async { 413 schedule(() async {
415 // Delay a bit to make sure the modification times are noticeably different. 414 // Delay a bit to make sure the modification times are noticeably different.
416 // 1s seems to be the finest granularity that dart:io reports. 415 // 1s seems to be the finest granularity that dart:io reports.
417 await new Future.delayed(new Duration(seconds: 1)); 416 await new Future.delayed(new Duration(seconds: 1));
418 417
419 path = p.join(sandboxDir, "myapp", path); 418 path = p.join(sandboxDir, "myapp", path);
420 touch(path); 419 touch(path);
421 }, "touching $path"); 420 }, "touching $path");
422 } 421 }
OLDNEW
« no previous file with comments | « test/lock_file_test.dart ('k') | test/preprocess_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698