Align more closely with package:test (#77118) (#78343)

This commit is contained in:
Ian Hickson
2021-03-16 13:58:02 -07:00
committed by GitHub
parent 0cf1007276
commit f3c25fa07a
105 changed files with 173 additions and 328 deletions

View File

@@ -5,6 +5,7 @@
import 'dart:convert';
import 'package:meta/meta.dart';
import 'constants.dart';
/// A semantics node created from Android accessibility information.

View File

@@ -1,14 +0,0 @@
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Defines a 'package:test' shim.
// TODO(ianh): Remove this file once https://github.com/dart-lang/matcher/issues/98 is fixed
import 'package:test/test.dart' hide TypeMatcher, isInstanceOf;
import 'package:test/test.dart' as test_package show TypeMatcher;
export 'package:test/test.dart' hide TypeMatcher, isInstanceOf;
/// A matcher that compares the type of the actual value to the type argument T.
test_package.TypeMatcher<T> isInstanceOf<T>() => isA<T>();

View File

@@ -2,9 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:test/test.dart' hide isInstanceOf;
import 'common.dart';
import 'constants.dart';
import 'flutter_test_alternative.dart';
/// Matches an [AndroidSemanticsNode].
///

View File

@@ -4,12 +4,11 @@
import 'dart:io' as io;
import 'package:android_semantics_testing/test_constants.dart';
import 'package:android_semantics_testing/android_semantics_testing.dart';
import 'package:test/test.dart' hide TypeMatcher, isInstanceOf;
import 'package:android_semantics_testing/test_constants.dart';
import 'package:flutter_driver/flutter_driver.dart';
import 'package:path/path.dart' as path;
import 'package:test/test.dart' hide isInstanceOf;
String adbPath() {
final String androidHome = io.Platform.environment['ANDROID_HOME'] ?? io.Platform.environment['ANDROID_SDK_ROOT'];