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

Side by Side Diff: packages/which/test/util.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 4 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 | « packages/which/test/test.dart ('k') | packages/which/test/which_impl_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
(Empty)
1
2 library which.test.util;
3
4 import 'dart:io';
5
6 import 'package:mockito/mockito.dart';
7 import 'package:path/path.dart' as path;
8 import 'package:which/src/candidate_paths.dart';
9
10 getPosixCandidatePaths(String command, String pathVar, String current) {
11 var env = {
12 'PATH': pathVar
13 };
14 var isWindows = false;
15 var context = new path.Context(style: path.Style.posix, current: current);
16
17 return getCandidatePaths(command, env, isWindows, context);
18 }
19
20 getWindowsCandidatePaths(String command, String pathVar, String pathExtVar, Stri ng current) {
21 var env = {
22 'PATH': pathVar,
23 'PATHEXT': pathExtVar
24 };
25 var isWindows = true;
26 var context = new path.Context(style: path.Style.windows, current: current);
27
28 return getCandidatePaths(command, env, isWindows, context);
29 }
30
31 class MockFileStat extends Mock implements FileStat {
32
33 MockFileStat();
34
35 noSuchMethod(i) => super.noSuchMethod(i);
36 }
37
38 int parseBinary(String b) => int.parse(b, radix: 2);
OLDNEW
« no previous file with comments | « packages/which/test/test.dart ('k') | packages/which/test/which_impl_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698