Revert "Driver vm service (#68654)" (#69074)

This reverts commit 3ecac303b4.

Co-authored-by: Dan Field <dfield@gmail.com>
This commit is contained in:
Jonah Williams
2020-10-26 18:56:34 -07:00
committed by GitHub
parent 6cd847c767
commit 19ce7a86af
34 changed files with 1160 additions and 754 deletions

View File

@@ -11,7 +11,6 @@ import 'package:test_api/test_api.dart' hide TypeMatcher, isInstanceOf; // ignor
import 'package:test_api/test_api.dart' as test_package show TypeMatcher; // ignore: deprecated_member_use
export 'package:test_api/test_api.dart' hide TypeMatcher, isInstanceOf; // ignore: deprecated_member_use
export 'package:test_api/fake.dart'; // ignore: deprecated_member_use
// Defines a 'package:test' shim.
// TODO(ianh): Clean this up once https://github.com/dart-lang/matcher/issues/98 is fixed
@@ -32,6 +31,3 @@ void tryToDelete(Directory directory) {
/// Matcher for functions that throw [DriverError].
final Matcher throwsDriverError = throwsA(isA<DriverError>());
/// Matcher for functions that throw [AssertionError].
final Matcher throwsAssertionError = throwsA(isA<AssertionError>());

File diff suppressed because it is too large Load Diff

View File

@@ -7,11 +7,12 @@
import 'package:flutter_driver/driver_extension.dart';
import 'package:flutter_driver/flutter_driver.dart';
import 'package:flutter_driver/src/common/find.dart';
import 'package:mockito/mockito.dart';
import '../../common.dart';
void main() {
final FakeDeserialize fakeDeserialize = FakeDeserialize();
final MockDeserialize mockDeserialize = MockDeserialize();
test('Ancestor finder serialize', () {
const SerializableFinder of = ByType('Text');
@@ -41,7 +42,7 @@ void main() {
'firstMatchOnly': 'true',
};
final Ancestor a = Ancestor.deserialize(serialized, fakeDeserialize);
final Ancestor a = Ancestor.deserialize(serialized, mockDeserialize);
expect(a.of, isA<ByType>());
expect(a.matching, isA<ByValueKey>());
expect(a.matchRoot, isTrue);
@@ -76,7 +77,7 @@ void main() {
'firstMatchOnly': 'true',
};
final Descendant a = Descendant.deserialize(serialized, fakeDeserialize);
final Descendant a = Descendant.deserialize(serialized, mockDeserialize);
expect(a.of, isA<ByType>());
expect(a.matching, isA<ByValueKey>());
expect(a.matchRoot, isTrue);
@@ -84,4 +85,4 @@ void main() {
});
}
class FakeDeserialize extends Fake with DeserializeFinderFactory { }
class MockDeserialize with Mock, DeserializeFinderFactory { }