Beginning implementation of IOSDevice. Implements list and install.

Also update tests to be compatible with the presence of iOS and add tests for list and install.
This commit is contained in:
Ian Fischer
2015-10-02 08:34:09 -07:00
parent 0364590b83
commit 12192d00c1
14 changed files with 229 additions and 45 deletions

View File

@@ -3,9 +3,23 @@
// found in the LICENSE file.
import 'package:mockito/mockito.dart';
import 'package:sky_tools/src/application_package.dart';
import 'package:sky_tools/src/device.dart';
class MockAndroidDevice extends Mock implements AndroidDevice {
@override
dynamic noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
}
class MockIOSDevice extends Mock implements IOSDevice {
@override
dynamic noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
}
void applicationPackageSetup() {
ApplicationPackageFactory.srcPath = './';
ApplicationPackageFactory.setBuildPath(
BuildType.prebuilt, BuildPlatform.android, './');
ApplicationPackageFactory.setBuildPath(
BuildType.prebuilt, BuildPlatform.iOS, './');
}