blob: 76b012002dfa570a39cdf9dcfef17b2fd13b25ef [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:ios_platform_images/ios_platform_images.dart';
void main() {
const MethodChannel channel =
MethodChannel('plugins.flutter.io/ios_platform_images');
TestWidgetsFlutterBinding.ensureInitialized();
setUp(() {
channel.setMockMethodCallHandler((MethodCall methodCall) async {
return '42';
});
});
tearDown(() {
channel.setMockMethodCallHandler(null);
});
test('resolveURL', () async {
expect(await IosPlatformImages.resolveURL('foobar'), '42');
});
}