@@ -45,13 +45,13 @@ void main() {
4545 fs.file ('pubspec.yaml' ).createSync ();
4646 fs.file ('.packages' ).createSync ();
4747 setExitFunctionForTests ();
48- appStarter = (DriveCommand command, Uri webUri) {
48+ appStarter = (DriveCommand command, Uri webUri, ApplicationPackage package, bool prebuiltApplication ) {
4949 throw 'Unexpected call to appStarter' ;
5050 };
5151 testRunner = (List <String > testArgs, Map <String , String > environment) {
5252 throw 'Unexpected call to testRunner' ;
5353 };
54- appStopper = (DriveCommand command) {
54+ appStopper = (DriveCommand command, ApplicationPackage package ) {
5555 throw 'Unexpected call to appStopper' ;
5656 };
5757 command.applicationPackages = FakeApplicationPackageFactory ();
@@ -99,7 +99,7 @@ void main() {
9999
100100 testUsingContext ('returns 1 when app fails to run' , () async {
101101 testDeviceManager.addDevice (MockDevice ());
102- appStarter = expectAsync2 ((DriveCommand command, Uri webUri) async => null );
102+ appStarter = expectAsync4 ((DriveCommand command, Uri webUri, ApplicationPackage package, bool prebuiltApplication ) async => null );
103103
104104 final String testApp = globals.fs.path.join (tempDir.path, 'test_driver' , 'e2e.dart' );
105105 final String testFile = globals.fs.path.join (tempDir.path, 'test_driver' , 'e2e_test.dart' );
@@ -201,7 +201,7 @@ void main() {
201201 final String testApp = globals.fs.path.join (tempDir.path, 'test' , 'e2e.dart' );
202202 final String testFile = globals.fs.path.join (tempDir.path, 'test_driver' , 'e2e_test.dart' );
203203
204- appStarter = expectAsync2 ((DriveCommand command, Uri webUri) async {
204+ appStarter = expectAsync4 ((DriveCommand command, Uri webUri, ApplicationPackage package, bool prebuiltApplication ) async {
205205 return LaunchResult .succeeded ();
206206 });
207207 testRunner = expectAsync2 ((List <String > testArgs, Map <String , String > environment) async {
@@ -211,7 +211,7 @@ void main() {
211211 'VM_SERVICE_URL' : 'null' ,
212212 });
213213 });
214- appStopper = expectAsync1 ((DriveCommand command) async {
214+ appStopper = expectAsync2 ((DriveCommand command, ApplicationPackage package ) async {
215215 return true ;
216216 });
217217
@@ -242,13 +242,13 @@ void main() {
242242 final String testApp = globals.fs.path.join (tempDir.path, 'test' , 'e2e.dart' );
243243 final String testFile = globals.fs.path.join (tempDir.path, 'test_driver' , 'e2e_test.dart' );
244244
245- appStarter = expectAsync2 ((DriveCommand command, Uri webUri) async {
245+ appStarter = expectAsync4 ((DriveCommand command, Uri webUri, ApplicationPackage package, bool prebuiltApplication ) async {
246246 return LaunchResult .succeeded ();
247247 });
248248 testRunner = (List <String > testArgs, Map <String , String > environment) async {
249249 throwToolExit (null , exitCode: 123 );
250250 };
251- appStopper = expectAsync1 ((DriveCommand command) async {
251+ appStopper = expectAsync2 ((DriveCommand command, ApplicationPackage package ) async {
252252 return true ;
253253 });
254254
@@ -281,7 +281,7 @@ void main() {
281281 final String testApp = globals.fs.path.join (tempDir.path, 'test' , 'e2e.dart' );
282282 final String testFile = globals.fs.path.join (tempDir.path, 'test_driver' , 'e2e_test.dart' );
283283
284- appStarter = expectAsync2 ((DriveCommand command, Uri webUri) async {
284+ appStarter = expectAsync4 ((DriveCommand command, Uri webUri, ApplicationPackage package, bool prebuiltApplication ) async {
285285 return LaunchResult .succeeded ();
286286 });
287287 testRunner = expectAsync2 ((List <String > testArgs, Map <String , String > environment) async {
@@ -294,7 +294,7 @@ void main() {
294294 ]
295295 );
296296 });
297- appStopper = expectAsync1 ((DriveCommand command) async {
297+ appStopper = expectAsync2 ((DriveCommand command, ApplicationPackage package ) async {
298298 return true ;
299299 });
300300
@@ -324,7 +324,7 @@ void main() {
324324 final String testApp = globals.fs.path.join (tempDir.path, 'test' , 'e2e.dart' );
325325 final String testFile = globals.fs.path.join (tempDir.path, 'test_driver' , 'e2e_test.dart' );
326326
327- appStarter = expectAsync2 ((DriveCommand command, Uri webUri) async {
327+ appStarter = expectAsync4 ((DriveCommand command, Uri webUri, ApplicationPackage package, bool prebuiltApplication ) async {
328328 return LaunchResult .succeeded ();
329329 });
330330 testRunner = expectAsync2 ((List <String > testArgs, Map <String , String > environment) async {
@@ -336,7 +336,7 @@ void main() {
336336 ]
337337 );
338338 });
339- appStopper = expectAsync1 ((DriveCommand command) async {
339+ appStopper = expectAsync2 ((DriveCommand command, ApplicationPackage package ) async {
340340 return true ;
341341 });
342342
@@ -493,8 +493,8 @@ void main() {
493493 testRunner = (List <String > testArgs, Map <String , String > environment) async {
494494 throwToolExit (null , exitCode: 123 );
495495 };
496- appStopper = expectAsync1 (
497- (DriveCommand command) async {
496+ appStopper = expectAsync2 (
497+ (DriveCommand command, ApplicationPackage package ) async {
498498 return true ;
499499 },
500500 count: 2 ,
@@ -603,8 +603,8 @@ void main() {
603603 testRunner = (List <String > testArgs, Map <String , String > environment) async {
604604 throwToolExit (null , exitCode: 123 );
605605 };
606- appStopper = expectAsync1 (
607- (DriveCommand command) async {
606+ appStopper = expectAsync2 (
607+ (DriveCommand command, ApplicationPackage package ) async {
608608 return true ;
609609 },
610610 count: 2 ,
0 commit comments