Convert services tests to NNBD (#62694)
This converts the packages/flutter/test/services directory to NNBD, now that the services package is converted. I changed the signature of checkMessageHandler and checkMockMessageHandler on BinaryMessenger to take a nullable handler, since the tests wanted to check to make sure a handler wasn't set, and that functionality no longer works if the handler is non-nullable.
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
set -e
|
||||
|
||||
# The tests to run on Firebase Test Lab.
|
||||
# Currently, the test consists on building an Android App Bundle and ensuring
|
||||
# that the app doesn't crash upon startup.
|
||||
@@ -26,8 +28,6 @@ devices=(
|
||||
"model=griffin,version=24"
|
||||
)
|
||||
|
||||
set -e
|
||||
|
||||
GIT_REVISION=$(git rev-parse HEAD)
|
||||
|
||||
DEVICE_FLAG=""
|
||||
@@ -35,6 +35,12 @@ for device in ${devices[*]}; do
|
||||
DEVICE_FLAG+="--device $device "
|
||||
done
|
||||
|
||||
# If running tests locally, the key env var needs to be set.
|
||||
if [[ -z $GCLOUD_FIREBASE_TESTLAB_KEY ]]; then
|
||||
echo "Not running firebase test lab tests because GCLOUD_FIREBASE_TESTLAB_KEY isn't set."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# New contributors will not have permissions to run this test - they won't be
|
||||
# able to access the service account information. We should just mark the test
|
||||
# as passed - it will run fine on post submit, where it will still catch
|
||||
|
||||
Reference in New Issue
Block a user