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