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
ff54fc6d
Unverified
Commit
ff54fc6d
authored
Apr 21, 2021
by
Abhishek Ghaskata
Committed by
GitHub
Apr 21, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate platform_interaction to null safety (#80621)
parent
0e979a50
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
10 deletions
+9
-10
main.dart
dev/integration_tests/platform_interaction/lib/main.dart
+2
-2
system_navigation.dart
...tests/platform_interaction/lib/src/system_navigation.dart
+1
-1
test_step.dart
...gration_tests/platform_interaction/lib/src/test_step.dart
+3
-4
pubspec.yaml
dev/integration_tests/platform_interaction/pubspec.yaml
+1
-1
main_test.dart
...ion_tests/platform_interaction/test_driver/main_test.dart
+2
-2
No files found.
dev/integration_tests/platform_interaction/lib/main.dart
View file @
ff54fc6d
...
...
@@ -16,7 +16,7 @@ void main() {
}
class
TestApp
extends
StatefulWidget
{
const
TestApp
({
Key
key
})
:
super
(
key:
key
);
const
TestApp
({
Key
?
key
})
:
super
(
key:
key
);
@override
_TestAppState
createState
()
=>
_TestAppState
();
...
...
@@ -26,7 +26,7 @@ class _TestAppState extends State<TestApp> {
static
final
List
<
TestStep
>
steps
=
<
TestStep
>[
()
=>
systemNavigatorPop
(),
];
Future
<
TestStepResult
>
_result
;
Future
<
TestStepResult
>
?
_result
;
int
_step
=
0
;
void
_executeNextStep
()
{
...
...
dev/integration_tests/platform_interaction/lib/src/system_navigation.dart
View file @
ff54fc6d
...
...
@@ -14,7 +14,7 @@ Future<TestStepResult> systemNavigatorPop() {
final
Completer
<
TestStepResult
>
completer
=
Completer
<
TestStepResult
>();
channel
.
setMessageHandler
((
String
message
)
async
{
channel
.
setMessageHandler
((
String
?
message
)
async
{
completer
.
complete
(
const
TestStepResult
(
'System navigation pop'
,
''
,
TestStatus
.
ok
));
return
''
;
...
...
dev/integration_tests/platform_interaction/lib/src/test_step.dart
View file @
ff54fc6d
...
...
@@ -23,12 +23,11 @@ class TestStepResult {
return
const
TestStepResult
(
'Executing'
,
nothing
,
TestStatus
.
pending
);
case
ConnectionState
.
done
:
if
(
snapshot
.
hasData
)
{
return
snapshot
.
data
;
return
snapshot
.
data
!
;
}
else
{
final
TestStepResult
result
=
snapshot
.
error
as
TestStepResult
;
return
result
;
final
Object
?
result
=
snapshot
.
error
;
return
result
!
as
TestStepResult
;
}
break
;
default
:
throw
'Unsupported state
${snapshot.connectionState}
'
;
}
...
...
dev/integration_tests/platform_interaction/pubspec.yaml
View file @
ff54fc6d
...
...
@@ -2,7 +2,7 @@ name: platform_interaction
description
:
Integration test for platform interactions.
environment
:
sdk
:
"
>=2.
0.0-dev.68
.0
<3.0.0"
sdk
:
"
>=2.
12
.0
<3.0.0"
dependencies
:
flutter
:
...
...
dev/integration_tests/platform_interaction/test_driver/main_test.dart
View file @
ff54fc6d
...
...
@@ -7,7 +7,7 @@ import 'package:test/test.dart' hide TypeMatcher, isInstanceOf;
void
main
(
)
{
group
(
'channel suite'
,
()
{
FlutterDriver
driver
;
late
FlutterDriver
driver
;
setUpAll
(()
async
{
driver
=
await
FlutterDriver
.
connect
(
printCommunication:
true
);
...
...
@@ -28,7 +28,7 @@ void main() {
});
tearDownAll
(()
async
{
driver
?
.
close
();
driver
.
close
();
});
});
}
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