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

Side by Side Diff: test/global/binstubs/outdated_snapshot_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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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:io';
6
7 import 'package:path/path.dart' as p; 5 import 'package:path/path.dart' as p;
8 import 'package:pub/src/io.dart'; 6 import 'package:pub/src/io.dart';
9 import 'package:scheduled_test/scheduled_process.dart'; 7 import 'package:scheduled_test/scheduled_process.dart';
10 import 'package:scheduled_test/scheduled_stream.dart'; 8 import 'package:scheduled_test/scheduled_stream.dart';
11 import 'package:scheduled_test/scheduled_test.dart'; 9 import 'package:scheduled_test/scheduled_test.dart';
12 10
13 import '../../descriptor.dart' as d; 11 import '../../descriptor.dart' as d;
14 import '../../test_pub.dart'; 12 import '../../test_pub.dart';
15 import 'utils.dart'; 13 import 'utils.dart';
16 14
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 process.shouldExit(); 46 process.shouldExit();
49 47
50 d.dir(cachePath, [ 48 d.dir(cachePath, [
51 d.dir('global_packages/foo/bin', [ 49 d.dir('global_packages/foo/bin', [
52 d.binaryMatcherFile('script.dart.snapshot', isNot(equals( 50 d.binaryMatcherFile('script.dart.snapshot', isNot(equals(
53 readBinaryFile(testAssetPath('out-of-date.snapshot'))))) 51 readBinaryFile(testAssetPath('out-of-date.snapshot')))))
54 ]) 52 ])
55 ]).validate(); 53 ]).validate();
56 }); 54 });
57 } 55 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698