Roll engine to a031239a5d4e44e60d0ebc62b8c544a9f592fc22 (#14601)

Includes:
* Exclude frontend_server from the license crawl (https://github.com/flutter/engine/pull/4645)
* Make native wrapper classes non-abstract (https://github.com/flutter/engine/pull/4607)
* Restrict clang-format to C, C++, Obj-C, Obj-C++ (https://github.com/flutter/engine/pull/4654)
This commit is contained in:
Alexander Markov 2018-02-09 14:40:28 -08:00 committed by GitHub
parent 8e2278bd8d
commit d64efe9fdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 17 additions and 11 deletions

View File

@ -1 +1 @@
337764e4edebdafad6685a4af81b84d456dac687 a031239a5d4e44e60d0ebc62b8c544a9f592fc22

View File

@ -78,7 +78,7 @@ class DelayedImageProvider extends ImageProvider<DelayedImageProvider> {
String toString() => '${describeIdentity(this)}}()'; String toString() => '${describeIdentity(this)}}()';
} }
class TestImage extends ui.Image { class TestImage implements ui.Image {
@override @override
int get width => 100; int get width => 100;

View File

@ -13,7 +13,7 @@ import 'package:flutter/foundation.dart';
/// ///
/// This is useful for running in the test Zone, where it is tricky to receive /// This is useful for running in the test Zone, where it is tricky to receive
/// callbacks originating from the IO thread. /// callbacks originating from the IO thread.
class FakeCodec extends ui.Codec { class FakeCodec implements ui.Codec {
final int _frameCount; final int _frameCount;
final int _repetitionCount; final int _repetitionCount;
final List<ui.FrameInfo> _frameInfos; final List<ui.FrameInfo> _frameInfos;
@ -46,4 +46,7 @@ class FakeCodec extends ui.Codec {
_nextFrame = (_nextFrame + 1) % _frameCount; _nextFrame = (_nextFrame + 1) % _frameCount;
return result; return result;
} }
@override
void dispose() { }
} }

View File

@ -9,7 +9,7 @@ import 'package:flutter/painting.dart';
import 'package:flutter/scheduler.dart' show timeDilation; import 'package:flutter/scheduler.dart' show timeDilation;
import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_test/flutter_test.dart';
class FakeFrameInfo extends FrameInfo { class FakeFrameInfo implements FrameInfo {
final Duration _duration; final Duration _duration;
final Image _image; final Image _image;
@ -23,7 +23,7 @@ class FakeFrameInfo extends FrameInfo {
Image get image => _image; Image get image => _image;
} }
class FakeImage extends Image { class FakeImage implements Image {
final int _width; final int _width;
final int _height; final int _height;

View File

@ -112,7 +112,7 @@ class TestImageProvider extends ImageProvider<TestImageProvider> {
} }
} }
class TestImage extends ui.Image { class TestImage implements ui.Image {
@override @override
int get width => 100; int get width => 100;

View File

@ -12,7 +12,7 @@ import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart'; import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_test/flutter_test.dart';
class TestImage extends ui.Image { class TestImage implements ui.Image {
TestImage(this.scale); TestImage(this.scale);
final double scale; final double scale;

View File

@ -25,15 +25,15 @@ class TestImageProvider extends ImageProvider<TestImageProvider> {
} }
} }
class TestImage extends ui.Image { class TestImage implements ui.Image {
@override @override
int get width => 16; int get width => 16;
@override @override
int get height => 9; int get height => 9;
// @override @override
// void dispose() { } void dispose() { }
} }
void main() { void main() {

View File

@ -473,7 +473,7 @@ class TestImageStreamCompleter extends ImageStreamCompleter {
} }
} }
class TestImage extends ui.Image { class TestImage implements ui.Image {
@override @override
int get width => 100; int get width => 100;
@ -482,4 +482,7 @@ class TestImage extends ui.Image {
@override @override
void dispose() { } void dispose() { }
@override
String toString() => '[$width\u00D7$height]';
} }