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

Issue 2526813002: Add unit tests for avfoundation format mapper functions and fix wrong implementation. (Closed)

Created:
4 years ago by daniela-webrtc
Modified:
4 years ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, qiang.lu, niklas.enbom, yujie_mao (webrtc), peah-webrtc
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add unit tests for avfoundation format mapper functions. The CL fixes adds tests that fully test the functions that manipulate the cricket::VideoFormat<->AVCaptureDeviceFormat relation. BUG=webrtc:6680 Committed: https://crrev.com/28c2487c8551369f47b89b9b29cc60999498f783 Cr-Commit-Position: refs/heads/master@{#15444}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Address review comments #

Total comments: 18

Patch Set 3 : Remove static methods exposure #

Total comments: 4

Patch Set 4 : Remove test fixture and simplify tests #

Patch Set 5 : Replace static method with static var #

Patch Set 6 : Rename test #

Total comments: 1

Patch Set 7 : Replace #include <vector> with <set> #

Total comments: 12

Patch Set 8 : Remove explicit ivar declaration #

Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -4 lines) Patch
M webrtc/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/sdk/objc/Framework/Classes/avfoundationformatmapper.h View 1 2 3 4 5 6 2 chunks +6 lines, -4 lines 0 comments Download
A webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm View 1 2 3 4 5 6 7 1 chunk +243 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (8 generated)
daniela-webrtc
Please take a look when you have time
4 years ago (2016-11-23 14:50:43 UTC) #2
magjed_webrtc
https://codereview.webrtc.org/2526813002/diff/1/webrtc/sdk/objc/Framework/Classes/avfoundationformatmapper.mm File webrtc/sdk/objc/Framework/Classes/avfoundationformatmapper.mm (right): https://codereview.webrtc.org/2526813002/diff/1/webrtc/sdk/objc/Framework/Classes/avfoundationformatmapper.mm#newcode25 webrtc/sdk/objc/Framework/Classes/avfoundationformatmapper.mm:25: return range.minFrameRate <= fps && range.maxFrameRate <= fps; Is ...
4 years ago (2016-11-24 13:42:59 UTC) #3
daniela-webrtc
https://codereview.webrtc.org/2526813002/diff/1/webrtc/sdk/objc/Framework/Classes/avfoundationformatmapper.mm File webrtc/sdk/objc/Framework/Classes/avfoundationformatmapper.mm (right): https://codereview.webrtc.org/2526813002/diff/1/webrtc/sdk/objc/Framework/Classes/avfoundationformatmapper.mm#newcode25 webrtc/sdk/objc/Framework/Classes/avfoundationformatmapper.mm:25: return range.minFrameRate <= fps && range.maxFrameRate <= fps; On ...
4 years ago (2016-11-25 08:58:15 UTC) #4
magjed_webrtc
https://codereview.webrtc.org/2526813002/diff/1/webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm File webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm (right): https://codereview.webrtc.org/2526813002/diff/1/webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm#newcode29 webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm:29: NSArray<AVCaptureDeviceFormat*>* GetEligibleDeviceFormats( On 2016/11/25 08:58:15, denicija-webrtc wrote: > On ...
4 years ago (2016-11-28 12:21:23 UTC) #5
daniela-webrtc
https://codereview.webrtc.org/2526813002/diff/20001/webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm File webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm (right): https://codereview.webrtc.org/2526813002/diff/20001/webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm#newcode57 webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm:57: NSNumber *subtype = [mockDataDictionary objectForKey:kMediaSubtypeKey]; On 2016/11/28 12:21:23, magjed_webrtc ...
4 years ago (2016-11-29 12:05:55 UTC) #6
magjed_webrtc
https://codereview.webrtc.org/2526813002/diff/20001/webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm File webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm (right): https://codereview.webrtc.org/2526813002/diff/20001/webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm#newcode98 webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm:98: void testEligibleWithValidFormats() { On 2016/11/29 12:05:55, denicija-webrtc wrote: > ...
4 years ago (2016-11-29 13:34:01 UTC) #7
daniela-webrtc
https://codereview.webrtc.org/2526813002/diff/20001/webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm File webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm (right): https://codereview.webrtc.org/2526813002/diff/20001/webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm#newcode290 webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm:290: testEligibleWithValidFormats(); On 2016/11/29 13:34:01, magjed_webrtc wrote: > On 2016/11/28 ...
4 years ago (2016-11-29 16:13:58 UTC) #8
magjed_webrtc
lgtm % nit https://codereview.webrtc.org/2526813002/diff/100001/webrtc/sdk/objc/Framework/Classes/avfoundationformatmapper.h File webrtc/sdk/objc/Framework/Classes/avfoundationformatmapper.h (right): https://codereview.webrtc.org/2526813002/diff/100001/webrtc/sdk/objc/Framework/Classes/avfoundationformatmapper.h#newcode13 webrtc/sdk/objc/Framework/Classes/avfoundationformatmapper.h:13: #include <vector> nit: You should include ...
4 years ago (2016-11-29 16:31:39 UTC) #9
kthelgason
lgtm % the include that magjed@ mentioned.
4 years ago (2016-11-30 09:33:25 UTC) #10
daniela-webrtc
@zeke mind taking a look when you have time?
4 years ago (2016-12-02 09:40:12 UTC) #12
tkchin_webrtc
a few comments, but lgtm https://codereview.webrtc.org/2526813002/diff/120001/webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm File webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm (right): https://codereview.webrtc.org/2526813002/diff/120001/webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm#newcode13 webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm:13: #include "avfoundationformatmapper.h" nit: include ...
4 years ago (2016-12-02 21:12:57 UTC) #13
magjed_webrtc
Also, update the CL title and description before landing, i.e. remove the 'fix wrong implementation' ...
4 years ago (2016-12-03 11:17:29 UTC) #14
daniela-webrtc
https://codereview.webrtc.org/2526813002/diff/120001/webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm File webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm (right): https://codereview.webrtc.org/2526813002/diff/120001/webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm#newcode13 webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm:13: #include "avfoundationformatmapper.h" On 2016/12/02 21:12:57, tkchin_webrtc wrote: > nit: ...
4 years ago (2016-12-05 12:55:51 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2526813002/140001
4 years ago (2016-12-06 13:02:35 UTC) #19
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years ago (2016-12-06 13:22:53 UTC) #22
commit-bot: I haz the power
4 years ago (2016-12-06 13:22:58 UTC) #24
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/28c2487c8551369f47b89b9b29cc60999498f783
Cr-Commit-Position: refs/heads/master@{#15444}

Powered by Google App Engine
This is Rietveld 408576698