mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Addresses flutter/flutter#18028 for the engine repo, and synchronizes the analysis_options.yaml files between the engine and the flutter/flutter repo.
20 lines
585 B
Dart
20 lines
585 B
Dart
import 'dart:async';
|
|
|
|
import 'package:frontend_server/server.dart';
|
|
import 'package:mockito/mockito.dart';
|
|
import 'package:test/test.dart';
|
|
import 'package:vm/frontend_server.dart' as frontend show CompilerInterface;
|
|
|
|
class _MockedCompiler extends Mock implements frontend.CompilerInterface {}
|
|
|
|
Future<int> main() async {
|
|
group('basic', () {
|
|
final frontend.CompilerInterface compiler = new _MockedCompiler();
|
|
|
|
test('train with mocked compiler completes', () async {
|
|
expect(await starter(<String>['--train'], compiler: compiler), equals(0));
|
|
});
|
|
});
|
|
return 0;
|
|
}
|