|
|
|
|
@@ -37,6 +37,7 @@ import 'package:webkit_inspection_protocol/webkit_inspection_protocol.dart';
|
|
|
|
|
|
|
|
|
|
import '../src/common.dart';
|
|
|
|
|
import '../src/context.dart';
|
|
|
|
|
import '../src/fakes.dart';
|
|
|
|
|
import '../src/testbed.dart';
|
|
|
|
|
|
|
|
|
|
const List<VmServiceExpectation> kAttachLogExpectations = <VmServiceExpectation>[
|
|
|
|
|
@@ -188,7 +189,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -215,7 +216,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
testUsingContext('profile does not supportsServiceProtocol', () {
|
|
|
|
|
@@ -246,7 +247,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -275,7 +276,7 @@ void main() {
|
|
|
|
|
Logger: () => FakeStatusLogger(BufferLogger.test()),
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -295,7 +296,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -330,7 +331,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -354,7 +355,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -374,7 +375,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -412,7 +413,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -480,7 +481,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -506,7 +507,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -586,7 +587,7 @@ void main() {
|
|
|
|
|
Usage: () => MockFlutterUsage(),
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -670,7 +671,7 @@ void main() {
|
|
|
|
|
Usage: () => MockFlutterUsage(),
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -712,7 +713,7 @@ void main() {
|
|
|
|
|
Usage: () => MockFlutterUsage(),
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -724,7 +725,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -760,7 +761,7 @@ void main() {
|
|
|
|
|
Usage: () => MockFlutterUsage(),
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -793,7 +794,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -833,7 +834,7 @@ void main() {
|
|
|
|
|
Usage: () => MockFlutterUsage(),
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -861,7 +862,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -889,7 +890,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -902,7 +903,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -929,7 +930,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -956,7 +957,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -983,7 +984,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -1010,7 +1011,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -1038,7 +1039,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -1079,7 +1080,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -1120,7 +1121,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -1161,7 +1162,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -1202,7 +1203,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -1243,7 +1244,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -1286,7 +1287,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -1329,7 +1330,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -1361,7 +1362,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -1387,7 +1388,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -1412,7 +1413,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -1487,7 +1488,7 @@ void main() {
|
|
|
|
|
Logger: () => FakeStatusLogger(BufferLogger.test()),
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -1534,7 +1535,7 @@ void main() {
|
|
|
|
|
Logger: () => FakeStatusLogger(BufferLogger.test()),
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -1551,7 +1552,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -1568,7 +1569,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -1585,7 +1586,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -1600,7 +1601,7 @@ void main() {
|
|
|
|
|
}, overrides: <Type, Generator>{
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -1627,7 +1628,7 @@ void main() {
|
|
|
|
|
)),
|
|
|
|
|
FileSystem: () => fileSystem,
|
|
|
|
|
ProcessManager: () => processManager,
|
|
|
|
|
Pub: () => MockPub(),
|
|
|
|
|
Pub: () => FakePub(),
|
|
|
|
|
Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
@@ -1660,4 +1661,3 @@ class MockWipConnection extends Mock implements WipConnection {}
|
|
|
|
|
class MockWipDebugger extends Mock implements WipDebugger {}
|
|
|
|
|
class MockWebServerDevice extends Mock implements WebServerDevice {}
|
|
|
|
|
class MockDevice extends Mock implements Device {}
|
|
|
|
|
class MockPub extends Mock implements Pub {}
|
|
|
|
|
|