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
2329cb7e
Commit
2329cb7e
authored
Apr 09, 2018
by
Sam Rawlins
Committed by
Alexander Aprelev
Apr 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bump mockito to 3.0.0-alpha+3 (#16306)
* Bump mockito to 3.0.0-alpha+3 * Type annotation
parent
660408ed
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
34 additions
and
35 deletions
+34
-35
pubspec.yaml
dev/bots/pubspec.yaml
+2
-2
pubspec.yaml
dev/manual_tests/pubspec.yaml
+2
-2
pubspec.yaml
dev/tools/pubspec.yaml
+2
-2
pubspec.yaml
packages/flutter/pubspec.yaml
+2
-2
pubspec.yaml
packages/flutter_driver/pubspec.yaml
+2
-2
pubspec.yaml
packages/flutter_localizations/pubspec.yaml
+2
-2
update_packages.dart
packages/flutter_tools/lib/src/commands/update_packages.dart
+2
-2
pubspec.yaml
packages/flutter_tools/pubspec.yaml
+2
-2
analytics_test.dart
packages/flutter_tools/test/analytics_test.dart
+2
-2
context_test.dart
packages/flutter_tools/test/base/context_test.dart
+1
-1
install_test.dart
packages/flutter_tools/test/commands/install_test.dart
+4
-4
compile_test.dart
packages/flutter_tools/test/compile_test.dart
+2
-2
code_signing_test.dart
packages/flutter_tools/test/ios/code_signing_test.dart
+2
-2
ios_workflow_test.dart
packages/flutter_tools/test/ios/ios_workflow_test.dart
+3
-3
simulators_test.dart
packages/flutter_tools/test/ios/simulators_test.dart
+1
-2
version_test.dart
packages/flutter_tools/test/version_test.dart
+1
-1
pubspec.yaml
packages/fuchsia_remote_debug_protocol/pubspec.yaml
+2
-2
No files found.
dev/bots/pubspec.yaml
View file @
2329cb7e
...
...
@@ -21,7 +21,7 @@ dependencies:
dev_dependencies
:
test
:
0.12.33
mockito
:
3.0.0-alpha+
2
mockito
:
3.0.0-alpha+
3
barback
:
0.15.2+15
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
boolean_selector
:
1.0.3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -59,4 +59,4 @@ dev_dependencies:
web_socket_channel
:
1.0.7
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
yaml
:
2.1.13
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
# PUBSPEC CHECKSUM:
73c1
# PUBSPEC CHECKSUM:
e7c2
dev/manual_tests/pubspec.yaml
View file @
2329cb7e
...
...
@@ -13,7 +13,7 @@ dev_dependencies:
flutter_test
:
sdk
:
flutter
mockito
:
3.0.0-alpha+
2
mockito
:
3.0.0-alpha+
3
args
:
1.4.1
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
async
:
2.0.6
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -64,4 +64,4 @@ dev_dependencies:
flutter
:
uses-material-design
:
true
# PUBSPEC CHECKSUM:
2bbb
# PUBSPEC CHECKSUM:
a9bc
dev/tools/pubspec.yaml
View file @
2329cb7e
...
...
@@ -24,7 +24,7 @@ dependencies:
dev_dependencies
:
test
:
0.12.33
mockito
:
3.0.0-alpha+
2
mockito
:
3.0.0-alpha+
3
barback
:
0.15.2+15
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
boolean_selector
:
1.0.3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -60,4 +60,4 @@ dev_dependencies:
web_socket_channel
:
1.0.7
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
yaml
:
2.1.13
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
# PUBSPEC CHECKSUM:
c7ca
# PUBSPEC CHECKSUM:
3ccb
packages/flutter/pubspec.yaml
View file @
2329cb7e
...
...
@@ -16,7 +16,7 @@ dependencies:
dev_dependencies
:
flutter_test
:
sdk
:
flutter
mockito
:
3.0.0-alpha+
2
mockito
:
3.0.0-alpha+
3
args
:
1.4.1
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
async
:
2.0.6
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -67,4 +67,4 @@ dev_dependencies:
environment
:
sdk
:
'
>=1.19.0
<2.0.0'
# PUBSPEC CHECKSUM:
2bbb
# PUBSPEC CHECKSUM:
a9bc
packages/flutter_driver/pubspec.yaml
View file @
2329cb7e
...
...
@@ -66,7 +66,7 @@ dependencies:
dev_dependencies
:
test
:
0.12.33
mockito
:
3.0.0-alpha+
2
mockito
:
3.0.0-alpha+
3
quiver
:
0.29.0+1
# PUBSPEC CHECKSUM:
8a7e
# PUBSPEC CHECKSUM:
397f
packages/flutter_localizations/pubspec.yaml
View file @
2329cb7e
...
...
@@ -15,7 +15,7 @@ dependencies:
dev_dependencies
:
flutter_test
:
sdk
:
flutter
mockito
:
3.0.0-alpha+
2
mockito
:
3.0.0-alpha+
3
args
:
1.4.1
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
async
:
2.0.6
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -62,4 +62,4 @@ dev_dependencies:
web_socket_channel
:
1.0.7
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
yaml
:
2.1.13
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
# PUBSPEC CHECKSUM:
809b
# PUBSPEC CHECKSUM:
fe9c
packages/flutter_tools/lib/src/commands/update_packages.dart
View file @
2329cb7e
...
...
@@ -27,7 +27,7 @@ import '../runner/flutter_command.dart';
/// ```
const
Map
<
String
,
String
>
_kManuallyPinnedDependencies
=
const
<
String
,
String
>{
// Add pinned packages here.
'mockito'
:
'3.0.0-alpha+
2
'
,
// TODO(aam): https://github.com/dart-lang/mockito/issues/110
'mockito'
:
'3.0.0-alpha+
3
'
,
// TODO(aam): https://github.com/dart-lang/mockito/issues/110
};
class
UpdatePackagesCommand
extends
FlutterCommand
{
...
...
@@ -1202,4 +1202,4 @@ const List<String> _ignoreForChecksum = const <String>[
'front_end'
,
'kernel'
,
'sky_engine'
,
];
\ No newline at end of file
];
packages/flutter_tools/pubspec.yaml
View file @
2329cb7e
...
...
@@ -81,7 +81,7 @@ dependencies:
dev_dependencies
:
collection
:
1.14.6
mockito
:
3.0.0-alpha+
2
mockito
:
3.0.0-alpha+
3
dartdoc
:
# Exclude this package from the hosted API docs.
...
...
@@ -95,4 +95,4 @@ dependency_overrides:
kernel
:
path
:
../../bin/cache/dart-sdk/lib/kernel
# PUBSPEC CHECKSUM:
7834
# PUBSPEC CHECKSUM:
9735
packages/flutter_tools/test/analytics_test.dart
View file @
2329cb7e
...
...
@@ -96,7 +96,7 @@ void main() {
testUsingContext
(
'flutter commands send timing events'
,
()
async
{
mockTimes
=
<
int
>[
1000
,
2000
];
when
(
mockDoctor
.
diagnose
(
androidLicenses:
false
,
verbose:
false
)).
then
Return
(
true
);
when
(
mockDoctor
.
diagnose
(
androidLicenses:
false
,
verbose:
false
)).
then
Answer
((
_
)
async
=>
true
);
final
DoctorCommand
command
=
new
DoctorCommand
();
final
CommandRunner
<
Null
>
runner
=
createTestCommandRunner
(
command
);
await
runner
.
run
(<
String
>[
'doctor'
]);
...
...
@@ -115,7 +115,7 @@ void main() {
testUsingContext
(
'doctor fail sends warning'
,
()
async
{
mockTimes
=
<
int
>[
1000
,
2000
];
when
(
mockDoctor
.
diagnose
(
androidLicenses:
false
,
verbose:
false
)).
then
Return
(
false
);
when
(
mockDoctor
.
diagnose
(
androidLicenses:
false
,
verbose:
false
)).
then
Answer
((
_
)
async
=>
false
);
final
DoctorCommand
command
=
new
DoctorCommand
();
final
CommandRunner
<
Null
>
runner
=
createTestCommandRunner
(
command
);
await
runner
.
run
(<
String
>[
'doctor'
]);
...
...
packages/flutter_tools/test/base/context_test.dart
View file @
2329cb7e
...
...
@@ -174,7 +174,7 @@ void main() {
test
(
'returns the value returned by body'
,
()
async
{
expect
(
await
context
.
run
<
int
>(
body:
()
=>
123
),
123
);
expect
(
await
context
.
run
<
String
>(
body:
()
=>
'value'
),
'value'
);
expect
(
await
context
.
run
<
Future
<
int
>
>(
body:
()
async
=>
456
),
456
);
expect
(
await
context
.
run
<
int
>(
body:
()
async
=>
456
),
456
);
});
test
(
'passes name to child context'
,
()
async
{
...
...
packages/flutter_tools/test/commands/install_test.dart
View file @
2329cb7e
...
...
@@ -17,8 +17,8 @@ void main() {
applyMocksToCommand
(
command
);
final
MockAndroidDevice
device
=
new
MockAndroidDevice
();
when
(
device
.
isAppInstalled
(
any
)).
then
Return
(
false
);
when
(
device
.
installApp
(
any
)).
then
Return
(
true
);
when
(
device
.
isAppInstalled
(
any
)).
then
Answer
((
_
)
async
=>
false
);
when
(
device
.
installApp
(
any
)).
then
Answer
((
_
)
async
=>
true
);
testDeviceManager
.
addDevice
(
device
);
await
createTestCommandRunner
(
command
).
run
(<
String
>[
'install'
]);
...
...
@@ -29,8 +29,8 @@ void main() {
applyMocksToCommand
(
command
);
final
MockIOSDevice
device
=
new
MockIOSDevice
();
when
(
device
.
isAppInstalled
(
any
)).
then
Return
(
false
);
when
(
device
.
installApp
(
any
)).
then
Return
(
true
);
when
(
device
.
isAppInstalled
(
any
)).
then
Answer
((
_
)
async
=>
false
);
when
(
device
.
installApp
(
any
)).
then
Answer
((
_
)
async
=>
true
);
testDeviceManager
.
addDevice
(
device
);
await
createTestCommandRunner
(
command
).
run
(<
String
>[
'install'
]);
...
...
packages/flutter_tools/test/compile_test.dart
View file @
2329cb7e
...
...
@@ -35,7 +35,7 @@ void main() {
when
(
mockProcessManager
.
canRun
(
any
)).
thenReturn
(
true
);
when
(
mockProcessManager
.
start
(
any
)).
thenAnswer
(
(
Invocation
invocation
)
=>
new
Future
<
Process
>.
value
(
mockFrontendServer
));
when
(
mockFrontendServer
.
exitCode
).
then
Return
(
0
);
when
(
mockFrontendServer
.
exitCode
).
then
Answer
((
_
)
async
=>
0
);
});
testUsingContext
(
'single dart successful compilation'
,
()
async
{
...
...
@@ -77,7 +77,7 @@ void main() {
});
testUsingContext
(
'single dart abnormal compiler termination'
,
()
async
{
when
(
mockFrontendServer
.
exitCode
).
then
Return
(
255
);
when
(
mockFrontendServer
.
exitCode
).
then
Answer
((
_
)
async
=>
255
);
final
BufferLogger
logger
=
context
[
Logger
];
...
...
packages/flutter_tools/test/ios/code_signing_test.dart
View file @
2329cb7e
...
...
@@ -130,7 +130,7 @@ void main() {
))
));
when
(
mockProcess
.
stderr
).
thenAnswer
((
Invocation
invocation
)
=>
mockStdErr
);
when
(
mockProcess
.
exitCode
).
then
Return
(
0
);
when
(
mockProcess
.
exitCode
).
then
Answer
((
_
)
async
=>
0
);
final
Map
<
String
,
String
>
signingConfigs
=
await
getCodeSigningIdentityDevelopmentTeam
(
iosApp:
app
);
...
...
@@ -185,7 +185,7 @@ void main() {
))
));
when
(
mockProcess
.
stderr
).
thenAnswer
((
Invocation
invocation
)
=>
mockStdErr
);
when
(
mockProcess
.
exitCode
).
then
Return
(
0
);
when
(
mockProcess
.
exitCode
).
then
Answer
((
_
)
async
=>
0
);
final
Map
<
String
,
String
>
signingConfigs
=
await
getCodeSigningIdentityDevelopmentTeam
(
iosApp:
app
);
...
...
packages/flutter_tools/test/ios/ios_workflow_test.dart
View file @
2329cb7e
...
...
@@ -253,9 +253,9 @@ void main() {
.
thenReturn
(
'Xcode 8.2.1
\n
Build version 8C1002
\n
'
);
when
(
xcode
.
isInstalledAndMeetsVersionCheck
).
thenReturn
(
true
);
when
(
xcode
.
eulaSigned
).
thenReturn
(
true
);
when
(
cocoaPods
.
isCocoaPodsInstalledAndMeetsVersionCheck
).
then
Return
(
false
);
when
(
cocoaPods
.
hasCocoaPods
).
then
Return
(
true
);
when
(
cocoaPods
.
isCocoaPodsInitialized
).
then
Return
(
false
);
when
(
cocoaPods
.
isCocoaPodsInstalledAndMeetsVersionCheck
).
then
Answer
((
_
)
async
=>
false
);
when
(
cocoaPods
.
hasCocoaPods
).
then
Answer
((
_
)
async
=>
true
);
when
(
cocoaPods
.
isCocoaPodsInitialized
).
then
Answer
((
_
)
async
=>
false
);
when
(
xcode
.
isSimctlInstalled
).
thenReturn
(
true
);
final
ValidationResult
result
=
await
new
IOSWorkflowTestTarget
().
validate
();
...
...
packages/flutter_tools/test/ios/simulators_test.dart
View file @
2329cb7e
...
...
@@ -306,8 +306,7 @@ void main() {
when
(
mockProcess
.
exitCode
)
.
thenAnswer
((
Invocation
invocation
)
=>
new
Future
<
int
>.
delayed
(
Duration
.
zero
,
()
=>
0
));
return
new
Future
<
Process
>.
value
(
mockProcess
);
})
.
thenThrow
(
new
TestFailure
(
'Should start one process only'
));
});
final
IOSSimulator
device
=
new
IOSSimulator
(
'123456'
,
category:
'iOS 11.0'
);
final
DeviceLogReader
logReader
=
device
.
getLogReader
(
...
...
packages/flutter_tools/test/version_test.dart
View file @
2329cb7e
...
...
@@ -396,7 +396,7 @@ void fakeData(
throw
new
StateError
(
'Unexpected call to Cache.setStampFor(
${invocation.positionalArguments}
,
${invocation.namedArguments}
)'
);
});
final
Answering
syncAnswer
=
(
Invocation
invocation
)
{
final
Answering
<
ProcessResult
>
syncAnswer
=
(
Invocation
invocation
)
{
bool
argsAre
(
String
a1
,
[
String
a2
,
String
a3
,
String
a4
,
String
a5
,
String
a6
,
String
a7
,
String
a8
])
{
const
ListEquality
<
String
>
equality
=
const
ListEquality
<
String
>();
final
List
<
String
>
args
=
invocation
.
positionalArguments
.
single
;
...
...
packages/fuchsia_remote_debug_protocol/pubspec.yaml
View file @
2329cb7e
...
...
@@ -62,7 +62,7 @@ dependencies:
yaml
:
2.1.13
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
dev_dependencies
:
mockito
:
3.0.0-alpha+
2
mockito
:
3.0.0-alpha+
3
test
:
0.12.33
# PUBSPEC CHECKSUM:
763
# PUBSPEC CHECKSUM:
b764
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