remove unneeded files
This commit is contained in:
parent
f871e6a81c
commit
3616993659
2 changed files with 1 additions and 37 deletions
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,23 +1 @@
|
||||||
import 'package:flutter/services.dart';
|
void main() {}
|
||||||
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');
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue