28 lines
750 B
Dart
28 lines
750 B
Dart
import 'dart:ffi';
|
|
import 'dart:io';
|
|
|
|
import 'package:archimedes_mobile_lib/archimedes_c_shim.dart';
|
|
import 'package:archimedes_mobile_lib/dynloader.dart';
|
|
import 'package:archimedes_mobile_lib/util.dart';
|
|
import 'package:ffi/ffi.dart';
|
|
import 'package:test/test.dart';
|
|
import "package:path/path.dart" show dirname, join;
|
|
|
|
final assets = join(HERE.parent.path, "assets");
|
|
final testFrames = join(assets, "test", "frames");
|
|
final firstFrame = join(testFrames, "0001.png");
|
|
|
|
void main() {
|
|
group('Unit Tests', () {
|
|
setUp(() {});
|
|
|
|
tearDown(() {
|
|
// Tear down code
|
|
});
|
|
test('newFrame', () {
|
|
Pointer<Uint8> frameData = readUint8Ptr(File(firstFrame));
|
|
// newFrame(frameData, fData.length, 768, 768, 1204);
|
|
});
|
|
});
|
|
}
|