Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
02769001
Unverified
Commit
02769001
authored
Mar 12, 2020
by
Dan Field
Committed by
GitHub
Mar 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Android SDK test fixes (#52144)
parent
9e848f3c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
gradle_test.dart
...flutter_tools/test/general.shard/android/gradle_test.dart
+2
-1
build_appbundle_test.dart
...ols/test/general.shard/commands/build_appbundle_test.dart
+2
-0
No files found.
packages/flutter_tools/test/general.shard/android/gradle_test.dart
View file @
02769001
...
@@ -1067,6 +1067,8 @@ plugin1=${plugin1.path}
...
@@ -1067,6 +1067,8 @@ plugin1=${plugin1.path}
mockProcessManager
=
MockProcessManager
();
mockProcessManager
=
MockProcessManager
();
android
=
fakePlatform
(
'android'
);
android
=
fakePlatform
(
'android'
);
when
(
mockAndroidSdk
.
directory
).
thenReturn
(
'irrelevant'
);
final
Directory
rootDirectory
=
fileSystem
.
currentDirectory
;
final
Directory
rootDirectory
=
fileSystem
.
currentDirectory
;
cache
=
Cache
(
cache
=
Cache
(
rootOverride:
rootDirectory
,
rootOverride:
rootDirectory
,
...
@@ -2653,5 +2655,4 @@ class MockFlutterProject extends Mock implements FlutterProject {}
...
@@ -2653,5 +2655,4 @@ class MockFlutterProject extends Mock implements FlutterProject {}
class
MockLocalEngineArtifacts
extends
Mock
implements
LocalEngineArtifacts
{}
class
MockLocalEngineArtifacts
extends
Mock
implements
LocalEngineArtifacts
{}
class
MockProcessManager
extends
Mock
implements
ProcessManager
{}
class
MockProcessManager
extends
Mock
implements
ProcessManager
{}
class
MockXcodeProjectInterpreter
extends
Mock
implements
XcodeProjectInterpreter
{}
class
MockXcodeProjectInterpreter
extends
Mock
implements
XcodeProjectInterpreter
{}
class
MockitoAndroidSdk
extends
Mock
implements
AndroidSdk
{}
class
MockUsage
extends
Mock
implements
Usage
{}
class
MockUsage
extends
Mock
implements
Usage
{}
packages/flutter_tools/test/general.shard/commands/build_appbundle_test.dart
View file @
02769001
...
@@ -155,6 +155,8 @@ void main() {
...
@@ -155,6 +155,8 @@ void main() {
});
});
mockAndroidSdk
=
MockAndroidSdk
();
mockAndroidSdk
=
MockAndroidSdk
();
when
(
mockAndroidSdk
.
licensesAvailable
).
thenReturn
(
true
);
when
(
mockAndroidSdk
.
platformToolsAvailable
).
thenReturn
(
true
);
when
(
mockAndroidSdk
.
validateSdkWellFormed
()).
thenReturn
(
const
<
String
>[]);
when
(
mockAndroidSdk
.
validateSdkWellFormed
()).
thenReturn
(
const
<
String
>[]);
when
(
mockAndroidSdk
.
directory
).
thenReturn
(
'irrelevant'
);
when
(
mockAndroidSdk
.
directory
).
thenReturn
(
'irrelevant'
);
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment