mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
* Leave only widget creation tracker kernel pass in flutter frontend server. This is follow-up to https://dart-review.googlesource.com/c/sdk/+/43888. * Adapt to updated interface * Tyop * Fix imports. Compiler interface extension * Add trivial test back. Rename library to flutter_frontend_server.
21 lines
569 B
Dart
21 lines
569 B
Dart
import 'dart:async';
|
|
|
|
import 'package:mockito/mockito.dart';
|
|
import 'package:test/test.dart';
|
|
import 'package:vm/frontend_server.dart' as frontend show CompilerInterface;
|
|
|
|
import '../lib/server.dart';
|
|
|
|
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;
|
|
}
|