| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #import <OCMock/OCMock.h> | 11 #import <OCMock/OCMock.h> |
| 12 | 12 |
| 13 #if TARGET_OS_IPHONE | 13 #if TARGET_OS_IPHONE |
| 14 #import <UIKit/UIKit.h> | 14 #import <UIKit/UIKit.h> |
| 15 #endif | 15 #endif |
| 16 | 16 |
| 17 #include "webrtc/rtc_base/gunit.h" | 17 #include "webrtc/rtc_base/gunit.h" |
| 18 | 18 |
| 19 #import <WebRTC/RTCCameraVideoCapturer.h> | 19 #import <WebRTC/RTCCameraVideoCapturer.h> |
| 20 #import <WebRTC/RTCDispatcher.h> | 20 #import <WebRTC/RTCDispatcher.h> |
| 21 #import <WebRTC/RTCVideoFrame.h> | 21 #import <WebRTC/RTCVideoFrame.h> |
| 22 #import "AVCaptureSession+Device.h" | 22 #import "AVCaptureSession+DevicePosition.h" |
| 23 | 23 |
| 24 #if TARGET_OS_IPHONE | 24 #if TARGET_OS_IPHONE |
| 25 // Helper method. | 25 // Helper method. |
| 26 CMSampleBufferRef createTestSampleBufferRef() { | 26 CMSampleBufferRef createTestSampleBufferRef() { |
| 27 | 27 |
| 28 // This image is already in the testing bundle. | 28 // This image is already in the testing bundle. |
| 29 UIImage *image = [UIImage imageNamed:@"Default.png"]; | 29 UIImage *image = [UIImage imageNamed:@"Default.png"]; |
| 30 CGSize size = image.size; | 30 CGSize size = image.size; |
| 31 CGImageRef imageRef = [image CGImage]; | 31 CGImageRef imageRef = [image CGImage]; |
| 32 | 32 |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 [test testRotationFrame]; | 439 [test testRotationFrame]; |
| 440 [test tearDown]; | 440 [test tearDown]; |
| 441 } | 441 } |
| 442 | 442 |
| 443 MAYBE_TEST(RTCCameraVideoCapturerTests, ImageExif) { | 443 MAYBE_TEST(RTCCameraVideoCapturerTests, ImageExif) { |
| 444 RTCCameraVideoCapturerTests *test = [[RTCCameraVideoCapturerTests alloc] init]
; | 444 RTCCameraVideoCapturerTests *test = [[RTCCameraVideoCapturerTests alloc] init]
; |
| 445 [test setup]; | 445 [test setup]; |
| 446 [test testImageExif]; | 446 [test testImageExif]; |
| 447 [test tearDown]; | 447 [test tearDown]; |
| 448 } | 448 } |
| OLD | NEW |