From 97ba227a81396fd2fedf14b8d6c4a63f153159d8 Mon Sep 17 00:00:00 2001 From: Stuart Morgan Date: Wed, 4 Feb 2026 13:26:21 -0500 Subject: [PATCH] [camera] Remove unused test file This test file doesn't appear to ever have been part of a project, so was never run, and was testing a utility method that no longer exists. --- .../example/ios/RunnerTests/CameraUtilTests.m | 49 ------------------- 1 file changed, 49 deletions(-) delete mode 100644 packages/camera/camera_avfoundation/example/ios/RunnerTests/CameraUtilTests.m diff --git a/packages/camera/camera_avfoundation/example/ios/RunnerTests/CameraUtilTests.m b/packages/camera/camera_avfoundation/example/ios/RunnerTests/CameraUtilTests.m deleted file mode 100644 index 7bfba21507c2..000000000000 --- a/packages/camera/camera_avfoundation/example/ios/RunnerTests/CameraUtilTests.m +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -@import camera_avfoundation; -@import XCTest; -@import AVFoundation; -#import - -@interface FLTCam : NSObject - -- (CGPoint)getCGPointForCoordsWithOrientation:(UIDeviceOrientation)orientation - x:(double)x - y:(double)y; - -@end - -@interface CameraUtilTests : XCTestCase -@property(readonly, nonatomic) FLTCam *camera; - -@end - -@implementation CameraUtilTests - -- (void)setUp { - _camera = [[FLTCam alloc] init]; -} - -- (void)testGetCGPointForCoordsWithOrientation_ShouldRotateCoords { - CGPoint point; - point = [_camera getCGPointForCoordsWithOrientation:UIDeviceOrientationLandscapeLeft x:1 y:1]; - XCTAssertTrue(CGPointEqualToPoint(point, CGPointMake(1, 1)), - @"Resulting coordinates are invalid."); - point = [_camera getCGPointForCoordsWithOrientation:UIDeviceOrientationPortrait x:0 y:1]; - XCTAssertTrue(CGPointEqualToPoint(point, CGPointMake(1, 1)), - @"Resulting coordinates are invalid."); - point = [_camera getCGPointForCoordsWithOrientation:UIDeviceOrientationLandscapeRight x:0 y:0]; - XCTAssertTrue(CGPointEqualToPoint(point, CGPointMake(1, 1)), - @"Resulting coordinates are invalid."); - point = [_camera getCGPointForCoordsWithOrientation:UIDeviceOrientationPortraitUpsideDown - x:1 - y:0]; - XCTAssertTrue(CGPointEqualToPoint(point, CGPointMake(1, 1)), - @"Resulting coordinates are invalid."); -} - -@end