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
e59651f9
Unverified
Commit
e59651f9
authored
Mar 27, 2018
by
Alexander Aprelev
Committed by
GitHub
Mar 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Move mockito to 3.0.0-alpha. (#15949)" (#15979)
This reverts commit
a7e62258
as there are failing tests.
parent
a7e62258
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
23 additions
and
23 deletions
+23
-23
pubspec.yaml
dev/bots/pubspec.yaml
+1
-1
pubspec.yaml
dev/manual_tests/pubspec.yaml
+1
-1
mock_image_http.dart
dev/manual_tests/test/mock_image_http.dart
+2
-2
pubspec.yaml
dev/tools/pubspec.yaml
+1
-1
pubspec.yaml
packages/flutter/pubspec.yaml
+1
-1
refresh_test.dart
packages/flutter/test/cupertino/refresh_test.dart
+1
-1
image_headers_test.dart
packages/flutter/test/widgets/image_headers_test.dart
+2
-2
pubspec.yaml
packages/flutter_driver/pubspec.yaml
+1
-1
pubspec.yaml
packages/flutter_localizations/pubspec.yaml
+1
-1
pubspec.yaml
packages/flutter_tools/pubspec.yaml
+1
-1
channel_test.dart
packages/flutter_tools/test/channel_test.dart
+4
-4
compile_test.dart
packages/flutter_tools/test/compile_test.dart
+1
-1
pubspec.yaml
packages/fuchsia_remote_debug_protocol/pubspec.yaml
+1
-1
fuchsia_remote_connection_test.dart
...e_debug_protocol/test/fuchsia_remote_connection_test.dart
+1
-1
dart_vm_test.dart
...sia_remote_debug_protocol/test/src/dart/dart_vm_test.dart
+4
-4
No files found.
dev/bots/pubspec.yaml
View file @
e59651f9
...
...
@@ -21,7 +21,7 @@ dependencies:
dev_dependencies
:
test
:
0.12.32+2
mockito
:
3.0.0-alpha+2
mockito
:
2.2.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"
...
...
dev/manual_tests/pubspec.yaml
View file @
e59651f9
...
...
@@ -13,7 +13,7 @@ dev_dependencies:
flutter_test
:
sdk
:
flutter
mockito
:
3.0.0-alpha+2
mockito
:
2.2.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"
...
...
dev/manual_tests/test/mock_image_http.dart
View file @
e59651f9
...
...
@@ -11,9 +11,9 @@ MockHttpClient createMockImageHttpClient(SecurityContext _) {
final
MockHttpClientRequest
request
=
new
MockHttpClientRequest
();
final
MockHttpClientResponse
response
=
new
MockHttpClientResponse
();
final
MockHttpHeaders
headers
=
new
MockHttpHeaders
();
when
(
client
.
getUrl
(
typed
(
any
))).
then
Answer
((
_
)
=>
new
Future
<
HttpClientRequest
>.
value
(
request
));
when
(
client
.
getUrl
(
typed
(
any
))).
then
Return
(
new
Future
<
HttpClientRequest
>.
value
(
request
));
when
(
request
.
headers
).
thenReturn
(
headers
);
when
(
request
.
close
()).
then
Answer
((
_
)
=>
new
Future
<
HttpClientResponse
>.
value
(
response
));
when
(
request
.
close
()).
then
Return
(
new
Future
<
HttpClientResponse
>.
value
(
response
));
when
(
response
.
contentLength
).
thenReturn
(
kTransparentImage
.
length
);
when
(
response
.
statusCode
).
thenReturn
(
HttpStatus
.
OK
);
when
(
response
.
listen
(
typed
(
any
))).
thenAnswer
((
Invocation
invocation
)
{
...
...
dev/tools/pubspec.yaml
View file @
e59651f9
...
...
@@ -24,7 +24,7 @@ dependencies:
dev_dependencies
:
test
:
0.12.32+2
mockito
:
3.0.0-alpha+2
mockito
:
2.2.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"
...
...
packages/flutter/pubspec.yaml
View file @
e59651f9
...
...
@@ -16,7 +16,7 @@ dependencies:
dev_dependencies
:
flutter_test
:
sdk
:
flutter
mockito
:
3.0.0-alpha+2
mockito
:
2.2.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"
...
...
packages/flutter/test/cupertino/refresh_test.dart
View file @
e59651f9
...
...
@@ -59,7 +59,7 @@ void main() {
}
return
refreshIndicator
;
});
when
(
mockHelper
.
refreshTask
()).
then
Answer
((
_
)
=>
refreshCompleter
.
future
);
when
(
mockHelper
.
refreshTask
()).
then
Return
(
refreshCompleter
.
future
);
});
SliverList
buildAListOfStuff
()
{
...
...
packages/flutter/test/widgets/image_headers_test.dart
View file @
e59651f9
...
...
@@ -27,9 +27,9 @@ void main() {
verify
(
headers
.
add
(
'flutter'
,
'flutter'
)).
called
(
1
);
},
createHttpClient:
(
SecurityContext
_
)
{
when
(
client
.
getUrl
(
typed
(
any
))).
then
Answer
((
_
)
=>
new
Future
<
HttpClientRequest
>.
value
(
request
));
when
(
client
.
getUrl
(
typed
(
any
))).
then
Return
(
new
Future
<
HttpClientRequest
>.
value
(
request
));
when
(
request
.
headers
).
thenReturn
(
headers
);
when
(
request
.
close
()).
then
Answer
((
_
)
=>
new
Future
<
HttpClientResponse
>.
value
(
response
));
when
(
request
.
close
()).
then
Return
(
new
Future
<
HttpClientResponse
>.
value
(
response
));
when
(
response
.
contentLength
).
thenReturn
(
kTransparentImage
.
length
);
when
(
response
.
statusCode
).
thenReturn
(
HttpStatus
.
OK
);
when
(
response
.
listen
(
typed
(
any
))).
thenAnswer
((
Invocation
invocation
)
{
...
...
packages/flutter_driver/pubspec.yaml
View file @
e59651f9
...
...
@@ -66,7 +66,7 @@ dependencies:
dev_dependencies
:
test
:
0.12.32+2
mockito
:
3.0.0-alpha+2
mockito
:
2.2.3
quiver
:
0.28.0
# PUBSPEC CHECKSUM: 74e9
packages/flutter_localizations/pubspec.yaml
View file @
e59651f9
...
...
@@ -15,7 +15,7 @@ dependencies:
dev_dependencies
:
flutter_test
:
sdk
:
flutter
mockito
:
3.0.0-alpha+2
mockito
:
2.2.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"
...
...
packages/flutter_tools/pubspec.yaml
View file @
e59651f9
...
...
@@ -81,7 +81,7 @@ dependencies:
dev_dependencies
:
collection
:
1.14.6
mockito
:
3.0.0-alpha+2
mockito
:
2.2.3
dartdoc
:
# Exclude this package from the hosted API docs.
...
...
packages/flutter_tools/test/channel_test.dart
View file @
e59651f9
...
...
@@ -46,14 +46,14 @@ void main() {
]);
final
Process
process
=
new
MockProcess
();
when
(
process
.
stdout
).
then
Answer
((
_
)
=>
stdout
);
when
(
process
.
stderr
).
then
Answer
((
_
)
=>
const
Stream
<
List
<
int
>>.
empty
());
when
(
process
.
exitCode
).
then
Answer
((
_
)
=>
new
Future
<
int
>.
value
(
0
));
when
(
process
.
stdout
).
then
Return
(
stdout
);
when
(
process
.
stderr
).
then
Return
(
const
Stream
<
List
<
int
>>.
empty
());
when
(
process
.
exitCode
).
then
Return
(
new
Future
<
int
>.
value
(
0
));
when
(
mockProcessManager
.
start
(
<
String
>[
'git'
,
'branch'
,
'-r'
],
workingDirectory:
typed
(
any
,
named:
'workingDirectory'
),
environment:
typed
(
any
,
named:
'environment'
)))
.
then
Answer
((
_
)
=>
new
Future
<
Process
>.
value
(
process
));
.
then
Return
(
new
Future
<
Process
>.
value
(
process
));
final
ChannelCommand
command
=
new
ChannelCommand
();
final
CommandRunner
<
Null
>
runner
=
createTestCommandRunner
(
command
);
...
...
packages/flutter_tools/test/compile_test.dart
View file @
e59651f9
...
...
@@ -30,7 +30,7 @@ void main() {
when
(
mockFrontendServer
.
stderr
)
.
thenAnswer
((
Invocation
invocation
)
=>
mockFrontendServerStdErr
);
final
StreamController
<
String
>
stdErrStreamController
=
new
StreamController
<
String
>();
when
(
mockFrontendServerStdErr
.
transform
<
String
>(
any
)).
then
Answer
((
_
)
=>
stdErrStreamController
.
stream
);
when
(
mockFrontendServerStdErr
.
transform
<
String
>(
any
)).
then
Return
(
stdErrStreamController
.
stream
);
when
(
mockFrontendServer
.
stdin
).
thenReturn
(
mockFrontendServerStdIn
);
when
(
mockProcessManager
.
canRun
(
any
)).
thenReturn
(
true
);
when
(
mockProcessManager
.
start
(
any
)).
thenAnswer
(
...
...
packages/fuchsia_remote_debug_protocol/pubspec.yaml
View file @
e59651f9
...
...
@@ -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
:
2.2.3
test
:
0.12.32+2
# PUBSPEC CHECKSUM: 97d6
packages/fuchsia_remote_debug_protocol/test/fuchsia_remote_connection_test.dart
View file @
e59651f9
...
...
@@ -100,7 +100,7 @@ void main() {
mockPeerConnections
.
add
(
mp
);
uriConnections
.
add
(
uri
);
when
(
mp
.
sendRequest
(
typed
<
String
>(
any
),
typed
<
String
>(
any
)))
.
then
Answer
((
_
)
=>
new
Future
<
Map
<
String
,
dynamic
>>(
.
then
Return
(
new
Future
<
Map
<
String
,
dynamic
>>(
()
=>
flutterViewCannedResponses
[
flutterViewIndex
++]));
return
mp
;
});
...
...
packages/fuchsia_remote_debug_protocol/test/src/dart/dart_vm_test.dart
View file @
e59651f9
...
...
@@ -86,7 +86,7 @@ void main() {
Future
<
json_rpc
.
Peer
>
mockVmConnectionFunction
(
Uri
uri
)
{
when
(
mockPeer
.
sendRequest
(
typed
<
String
>(
any
),
typed
<
Map
<
String
,
dynamic
>>(
any
)))
.
then
Answer
((
_
)
=>
new
Future
<
Map
<
String
,
dynamic
>>(
.
then
Return
(
new
Future
<
Map
<
String
,
dynamic
>>(
()
=>
flutterViewCannedResponses
));
return
new
Future
<
json_rpc
.
Peer
>(()
=>
mockPeer
);
}
...
...
@@ -135,7 +135,7 @@ void main() {
Future
<
json_rpc
.
Peer
>
mockVmConnectionFunction
(
Uri
uri
)
{
when
(
mockPeer
.
sendRequest
(
typed
<
String
>(
any
),
typed
<
Map
<
String
,
dynamic
>>(
any
)))
.
then
Answer
((
_
)
=>
new
Future
<
Map
<
String
,
dynamic
>>(
.
then
Return
(
new
Future
<
Map
<
String
,
dynamic
>>(
()
=>
flutterViewCannedResponseMissingId
));
return
new
Future
<
json_rpc
.
Peer
>(()
=>
mockPeer
);
}
...
...
@@ -173,7 +173,7 @@ void main() {
Future
<
json_rpc
.
Peer
>
mockVmConnectionFunction
(
Uri
uri
)
{
when
(
mockPeer
.
sendRequest
(
typed
<
String
>(
any
),
typed
<
Map
<
String
,
dynamic
>>(
any
)))
.
then
Answer
((
_
)
=>
new
Future
<
Map
<
String
,
dynamic
>>(
.
then
Return
(
new
Future
<
Map
<
String
,
dynamic
>>(
()
=>
flutterViewCannedResponseMissingIsolateName
));
return
new
Future
<
json_rpc
.
Peer
>(()
=>
mockPeer
);
}
...
...
@@ -208,7 +208,7 @@ void main() {
// Return a command that will never complete.
when
(
mockPeer
.
sendRequest
(
typed
<
String
>(
any
),
typed
<
Map
<
String
,
dynamic
>>(
any
)))
.
then
Answer
((
_
)
=>
new
Completer
<
Map
<
String
,
dynamic
>>().
future
);
.
then
Return
(
new
Completer
<
Map
<
String
,
dynamic
>>().
future
);
return
new
Future
<
json_rpc
.
Peer
>(()
=>
mockPeer
);
}
...
...
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