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
bf37a396
Unverified
Commit
bf37a396
authored
Jan 27, 2021
by
Jenn Magder
Committed by
GitHub
Jan 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename setUpMockXcodeBuildHandler -> setUpFakeXcodeBuildHandler in tests (#74778)
parent
fe3fb6af
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
+18
-18
build_ipa_test.dart
...er_tools/test/commands.shard/hermetic/build_ipa_test.dart
+9
-9
build_macos_test.dart
..._tools/test/commands.shard/hermetic/build_macos_test.dart
+9
-9
No files found.
packages/flutter_tools/test/commands.shard/hermetic/build_ipa_test.dart
View file @
bf37a396
...
...
@@ -80,7 +80,7 @@ void main() {
// Creates a FakeCommand for the xcodebuild call to build the app
// in the given configuration.
FakeCommand
setUp
Mock
XcodeBuildHandler
({
bool
verbose
=
false
,
bool
showBuildSettings
=
false
,
void
Function
()
onRun
})
{
FakeCommand
setUp
Fake
XcodeBuildHandler
({
bool
verbose
=
false
,
bool
showBuildSettings
=
false
,
void
Function
()
onRun
})
{
return
FakeCommand
(
command:
<
String
>[
'xcrun'
,
...
...
@@ -207,8 +207,8 @@ void main() {
FileSystem:
()
=>
fileSystem
,
ProcessManager:
()
=>
FakeProcessManager
.
list
(<
FakeCommand
>[
xattrCommand
,
setUp
Mock
XcodeBuildHandler
(),
setUp
Mock
XcodeBuildHandler
(
showBuildSettings:
true
),
setUp
Fake
XcodeBuildHandler
(),
setUp
Fake
XcodeBuildHandler
(
showBuildSettings:
true
),
]),
Platform:
()
=>
macosPlatform
,
XcodeProjectInterpreter:
()
=>
FakeXcodeProjectInterpreterWithBuildSettings
(),
...
...
@@ -225,8 +225,8 @@ void main() {
FileSystem:
()
=>
fileSystem
,
ProcessManager:
()
=>
FakeProcessManager
.
list
(<
FakeCommand
>[
xattrCommand
,
setUp
Mock
XcodeBuildHandler
(
verbose:
true
),
setUp
Mock
XcodeBuildHandler
(
verbose:
true
,
showBuildSettings:
true
),
setUp
Fake
XcodeBuildHandler
(
verbose:
true
),
setUp
Fake
XcodeBuildHandler
(
verbose:
true
,
showBuildSettings:
true
),
]),
Platform:
()
=>
macosPlatform
,
XcodeProjectInterpreter:
()
=>
FakeXcodeProjectInterpreterWithBuildSettings
(),
...
...
@@ -254,7 +254,7 @@ void main() {
FileSystem:
()
=>
fileSystem
,
ProcessManager:
()
=>
FakeProcessManager
.
list
(<
FakeCommand
>[
xattrCommand
,
setUp
Mock
XcodeBuildHandler
(
onRun:
()
{
setUp
Fake
XcodeBuildHandler
(
onRun:
()
{
fileSystem
.
file
(
'build/flutter_size_01/snapshot.arm64.json'
)
..
createSync
(
recursive:
true
)
..
writeAsStringSync
(
'''
...
...
@@ -270,7 +270,7 @@ void main() {
..
createSync
(
recursive:
true
)
..
writeAsStringSync
(
'{}'
);
}),
setUp
Mock
XcodeBuildHandler
(
showBuildSettings:
true
),
setUp
Fake
XcodeBuildHandler
(
showBuildSettings:
true
),
]),
Platform:
()
=>
macosPlatform
,
FileSystemUtils:
()
=>
FileSystemUtils
(
fileSystem:
fileSystem
,
platform:
macosPlatform
),
...
...
@@ -301,8 +301,8 @@ void main() {
FileSystem:
()
=>
fileSystem
,
ProcessManager:
()
=>
FakeProcessManager
.
list
(<
FakeCommand
>[
xattrCommand
,
setUp
Mock
XcodeBuildHandler
(),
setUp
Mock
XcodeBuildHandler
(
showBuildSettings:
true
),
setUp
Fake
XcodeBuildHandler
(),
setUp
Fake
XcodeBuildHandler
(
showBuildSettings:
true
),
exportArchiveCommand
,
]),
Platform:
()
=>
macosPlatform
,
...
...
packages/flutter_tools/test/commands.shard/hermetic/build_macos_test.dart
View file @
bf37a396
...
...
@@ -78,7 +78,7 @@ void main() {
// Creates a FakeCommand for the xcodebuild call to build the app
// in the given configuration.
FakeCommand
setUp
Mock
XcodeBuildHandler
(
String
configuration
,
{
bool
verbose
=
false
,
void
Function
()
onRun
})
{
FakeCommand
setUp
Fake
XcodeBuildHandler
(
String
configuration
,
{
bool
verbose
=
false
,
void
Function
()
onRun
})
{
final
FlutterProject
flutterProject
=
FlutterProject
.
fromDirectory
(
fileSystem
.
currentDirectory
);
final
Directory
flutterBuildDir
=
fileSystem
.
directory
(
getMacOSBuildDirectory
());
return
FakeCommand
(
...
...
@@ -154,7 +154,7 @@ void main() {
},
overrides:
<
Type
,
Generator
>{
FileSystem:
()
=>
fileSystem
,
ProcessManager:
()
=>
FakeProcessManager
.
list
(<
FakeCommand
>[
setUp
Mock
XcodeBuildHandler
(
'Debug'
)
setUp
Fake
XcodeBuildHandler
(
'Debug'
)
]),
Platform:
()
=>
macosPlatform
,
FeatureFlags:
()
=>
TestFeatureFlags
(
isMacOSEnabled:
true
),
...
...
@@ -170,7 +170,7 @@ void main() {
},
overrides:
<
Type
,
Generator
>{
FileSystem:
()
=>
fileSystem
,
ProcessManager:
()
=>
FakeProcessManager
.
list
(<
FakeCommand
>[
setUp
Mock
XcodeBuildHandler
(
'Debug'
)
setUp
Fake
XcodeBuildHandler
(
'Debug'
)
]),
Platform:
()
=>
macosPlatform
,
FeatureFlags:
()
=>
TestFeatureFlags
(
isMacOSEnabled:
true
),
...
...
@@ -186,7 +186,7 @@ void main() {
},
overrides:
<
Type
,
Generator
>{
FileSystem:
()
=>
fileSystem
,
ProcessManager:
()
=>
FakeProcessManager
.
list
(<
FakeCommand
>[
setUp
Mock
XcodeBuildHandler
(
'Debug'
,
verbose:
true
)
setUp
Fake
XcodeBuildHandler
(
'Debug'
,
verbose:
true
)
]),
Platform:
()
=>
macosPlatform
,
FeatureFlags:
()
=>
TestFeatureFlags
(
isMacOSEnabled:
true
),
...
...
@@ -203,7 +203,7 @@ void main() {
},
overrides:
<
Type
,
Generator
>{
FileSystem:
()
=>
fileSystem
,
ProcessManager:
()
=>
FakeProcessManager
.
list
(<
FakeCommand
>[
setUp
Mock
XcodeBuildHandler
(
'Profile'
)
setUp
Fake
XcodeBuildHandler
(
'Profile'
)
]),
Platform:
()
=>
macosPlatform
,
XcodeProjectInterpreter:
()
=>
FakeXcodeProjectInterpreterWithProfile
(),
...
...
@@ -220,7 +220,7 @@ void main() {
},
overrides:
<
Type
,
Generator
>{
FileSystem:
()
=>
fileSystem
,
ProcessManager:
()
=>
FakeProcessManager
.
list
(<
FakeCommand
>[
setUp
Mock
XcodeBuildHandler
(
'Release'
)
setUp
Fake
XcodeBuildHandler
(
'Release'
)
]),
Platform:
()
=>
macosPlatform
,
FeatureFlags:
()
=>
TestFeatureFlags
(
isMacOSEnabled:
true
),
...
...
@@ -269,7 +269,7 @@ void main() {
},
overrides:
<
Type
,
Generator
>{
FileSystem:
()
=>
fileSystem
,
ProcessManager:
()
=>
FakeProcessManager
.
list
(<
FakeCommand
>[
setUp
Mock
XcodeBuildHandler
(
'Release'
)
setUp
Fake
XcodeBuildHandler
(
'Release'
)
]),
Platform:
()
=>
macosPlatform
,
FeatureFlags:
()
=>
TestFeatureFlags
(
isMacOSEnabled:
true
),
...
...
@@ -299,7 +299,7 @@ void main() {
},
overrides:
<
Type
,
Generator
>{
FileSystem:
()
=>
fileSystem
,
ProcessManager:
()
=>
FakeProcessManager
.
list
(<
FakeCommand
>[
setUp
Mock
XcodeBuildHandler
(
'Debug'
)
setUp
Fake
XcodeBuildHandler
(
'Debug'
)
]),
Platform:
()
=>
macosPlatform
,
FeatureFlags:
()
=>
TestFeatureFlags
(
isMacOSEnabled:
true
),
...
...
@@ -349,7 +349,7 @@ void main() {
},
overrides:
<
Type
,
Generator
>{
FileSystem:
()
=>
fileSystem
,
ProcessManager:
()
=>
FakeProcessManager
.
list
(<
FakeCommand
>[
setUp
Mock
XcodeBuildHandler
(
'Release'
,
onRun:
()
{
setUp
Fake
XcodeBuildHandler
(
'Release'
,
onRun:
()
{
fileSystem
.
file
(
'build/flutter_size_01/snapshot.x86_64.json'
)
..
createSync
(
recursive:
true
)
..
writeAsStringSync
(
'''
...
...
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