remove unneeded files

This commit is contained in:
Lukas Lihotzki 2021-04-19 20:35:50 +02:00
parent f871e6a81c
commit 3616993659
2 changed files with 1 additions and 37 deletions

View File

@ -1,14 +0,0 @@
import 'dart:async';
import 'package:flutter/services.dart';
class FlutterOpensslCrypto {
static const MethodChannel _channel =
const MethodChannel('flutter_openssl_crypto');
static Future<String> get platformVersion async {
final String version = await _channel.invokeMethod('getPlatformVersion');
return version;
}
}

View File

@ -1,23 +1 @@
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:flutter_openssl_crypto/flutter_openssl_crypto.dart';
void main() {
const MethodChannel channel = MethodChannel('flutter_openssl_crypto');
TestWidgetsFlutterBinding.ensureInitialized();
setUp(() {
channel.setMockMethodCallHandler((MethodCall methodCall) async {
return '42';
});
});
tearDown(() {
channel.setMockMethodCallHandler(null);
});
test('getPlatformVersion', () async {
expect(await FlutterOpensslCrypto.platformVersion, '42');
});
}
void main() {}