Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 2f8f895

Browse files
author
Adam Harwood
committed
Move export tests into camera_platform_interface_test.dart
1 parent 13f3e0c commit 2f8f895

File tree

2 files changed

+42
-48
lines changed

2 files changed

+42
-48
lines changed

packages/camera/camera_platform_interface/test/camera_platform_interface_test.dart

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,48 @@ void main() {
442442
);
443443
});
444444
});
445+
446+
group('exports', () {
447+
test('CameraDescription is exported', () {
448+
const CameraDescription(
449+
name: 'abc-123',
450+
sensorOrientation: 1,
451+
lensDirection: CameraLensDirection.external);
452+
});
453+
454+
test('CameraException is exported', () {
455+
CameraException('1', 'error');
456+
});
457+
458+
test('CameraImageData is exported', () {
459+
const CameraImageData(
460+
width: 1,
461+
height: 1,
462+
format: CameraImageFormat(ImageFormatGroup.bgra8888, raw: 1),
463+
planes: [],
464+
);
465+
});
466+
467+
test('ExposureMode is exported', () {
468+
ExposureMode.auto;
469+
});
470+
471+
test('FlashMode is exported', () {
472+
FlashMode.auto;
473+
});
474+
475+
test('FocusMode is exported', () {
476+
FocusMode.auto;
477+
});
478+
479+
test('ResolutionPreset is exported', () {
480+
ResolutionPreset.high;
481+
});
482+
483+
test('VideoCaptureOptions is exported', () {
484+
const VideoCaptureOptions(123);
485+
});
486+
});
445487
}
446488

447489
class ImplementsCameraPlatform implements CameraPlatform {

packages/camera/camera_platform_interface/test/types/type_export_test.dart

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)