Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(624)

Unified Diff: webrtc/sdk/objc/Framework/Classes/avfoundationformatmapper.h

Issue 2526813002: Add unit tests for avfoundation format mapper functions and fix wrong implementation. (Closed)
Patch Set: Remove explicit ivar declaration Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/BUILD.gn ('k') | webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/sdk/objc/Framework/Classes/avfoundationformatmapper.h
diff --git a/webrtc/sdk/objc/Framework/Classes/avfoundationformatmapper.h b/webrtc/sdk/objc/Framework/Classes/avfoundationformatmapper.h
index 9af55e9b0efef21d5c53bf46cd508b83838abe95..0f357a06608beb52b5778bd8142e7938fee12553 100644
--- a/webrtc/sdk/objc/Framework/Classes/avfoundationformatmapper.h
+++ b/webrtc/sdk/objc/Framework/Classes/avfoundationformatmapper.h
@@ -8,6 +8,8 @@
* be found in the AUTHORS file in the root of the source tree.
*/
+#include <set>
+
#import <AVFoundation/AVFoundation.h>
#import <Foundation/Foundation.h>
@@ -16,12 +18,12 @@
namespace webrtc {
// Mapping from AVCaptureDeviceFormat to cricket::VideoFormat for given input
// device.
-extern std::set<cricket::VideoFormat> GetSupportedVideoFormatsForDevice(
+std::set<cricket::VideoFormat> GetSupportedVideoFormatsForDevice(
AVCaptureDevice* device);
// Sets device format for the provided capture device. Returns YES/NO depending
// on success.
-extern bool SetFormatForCaptureDevice(AVCaptureDevice* device,
- AVCaptureSession* session,
- const cricket::VideoFormat& format);
+bool SetFormatForCaptureDevice(AVCaptureDevice* device,
+ AVCaptureSession* session,
+ const cricket::VideoFormat& format);
}
« no previous file with comments | « webrtc/BUILD.gn ('k') | webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698