Commit 7566f73d authored by Chris Bracken's avatar Chris Bracken Committed by GitHub

Simplify MemoryPressureObserver test (#10308)

parent 07e8a62c
......@@ -8,25 +8,13 @@ import 'package:flutter_test/flutter_test.dart';
import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart';
class MemoryPressureObserver implements WidgetsBindingObserver {
class MemoryPressureObserver extends WidgetsBindingObserver {
bool sawMemoryPressure = false;
@override
void didHaveMemoryPressure() {
sawMemoryPressure = true;
}
@override
Future<bool> didPopRoute() => new Future<bool>.value(false);
@override
void didChangeMetrics() { }
@override
void didChangeLocale(Locale locale) { }
@override
void didChangeAppLifecycleState(AppLifecycleState state) { }
}
void main() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment