Fix broken Chromebot build (flutter/engine#5018)
This commit is contained in:
@@ -24,6 +24,10 @@ using tonic::DartInvoke;
|
||||
using tonic::DartPersistentValue;
|
||||
using tonic::ToDart;
|
||||
|
||||
#ifdef ERROR
|
||||
#undef ERROR
|
||||
#endif
|
||||
|
||||
namespace blink {
|
||||
namespace {
|
||||
|
||||
|
||||
1
engine/src/flutter/testing/dart/.gitignore
vendored
1
engine/src/flutter/testing/dart/.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
.dart_tool
|
||||
.packages
|
||||
pubspec.lock
|
||||
|
||||
@@ -7,8 +7,8 @@ import 'dart:ui';
|
||||
import 'dart:typed_data';
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:path/path.dart' as path;
|
||||
import 'package:test/test.dart';
|
||||
|
||||
const int _kWidth = 10;
|
||||
const int _kRadius = 2;
|
||||
@@ -24,8 +24,9 @@ void main() {
|
||||
expect(new Uint8List.view(data.buffer), getExpectedBytes());
|
||||
});
|
||||
|
||||
test('Handles greyscale images', () async {
|
||||
Uint8List png = await new File('../resources/4x4.png').readAsBytes();
|
||||
test('Handles grayscale images', () async {
|
||||
File grayscaleImage = new File(path.join('flutter', 'testing', 'resources', '4x4.png'));
|
||||
Uint8List png = await grayscaleImage.readAsBytes();
|
||||
Completer<Image> completer = new Completer<Image>();
|
||||
decodeImageFromList(png, (Image image) => completer.complete(image));
|
||||
Image image = await completer.future;
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
name: engine_tests
|
||||
dependencies:
|
||||
flutter:
|
||||
sdk: flutter
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
sdk: flutter
|
||||
test: any
|
||||
path: any
|
||||
|
||||
Reference in New Issue
Block a user