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

Issue 1820193002: Refactor some ObjC API init methods. (Closed)

Created:
4 years, 9 months ago by tkchin_webrtc
Modified:
4 years, 9 months ago
Reviewers:
hjon_webrtc, Chuck
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Refactor some ObjC API init methods. initWithFactory: is clumsy and makes classes difficult to mock out in tests. By keeping methods on the factory, we can simply mock out the factory's methods instead. We can consider adding regular Obj-C like ctors if we move to making the factory a singleton, but that requires further discussion. BUG= R=haysc@webrtc.org, hjon@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/f3cb49f3ef944f953603d2a2e80f5f9447c30434

Patch Set 1 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -41 lines) Patch
M webrtc/api/objc/RTCAVFoundationVideoSource.h View 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/api/objc/RTCAVFoundationVideoSource+Private.h View 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/api/objc/RTCAudioTrack.h View 1 chunk +0 lines, -4 lines 0 comments Download
M webrtc/api/objc/RTCAudioTrack+Private.h View 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/api/objc/RTCMediaStream.h View 1 chunk +0 lines, -4 lines 0 comments Download
M webrtc/api/objc/RTCMediaStream+Private.h View 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/api/objc/RTCPeerConnection.h View 1 chunk +0 lines, -13 lines 0 comments Download
M webrtc/api/objc/RTCPeerConnection+Private.h View 1 chunk +13 lines, -0 lines 0 comments Download
M webrtc/api/objc/RTCPeerConnectionFactory.h View 1 chunk +41 lines, -0 lines 0 comments Download
M webrtc/api/objc/RTCPeerConnectionFactory.mm View 2 chunks +46 lines, -0 lines 0 comments Download
M webrtc/api/objc/RTCVideoTrack.h View 1 chunk +0 lines, -5 lines 0 comments Download
M webrtc/api/objc/RTCVideoTrack+Private.h View 1 chunk +5 lines, -0 lines 0 comments Download
M webrtc/examples/objc/AppRTCDemo/ARDAppClient.m View 3 chunks +8 lines, -13 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
tkchin_webrtc
4 years, 9 months ago (2016-03-22 05:27:53 UTC) #5
kjellander_webrtc
On 2016/03/22 05:27:53, tkchin_webrtc wrote: Android failures caused by https://codereview.chromium.org/1818083003/ which has now been reverted. ...
4 years, 9 months ago (2016-03-22 10:24:22 UTC) #6
Chuck
lgtm
4 years, 9 months ago (2016-03-22 15:27:01 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1820193002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1820193002/20001
4 years, 9 months ago (2016-03-22 15:54:48 UTC) #9
hjon_webrtc
On 2016/03/22 05:27:53, tkchin_webrtc wrote: lgtm
4 years, 9 months ago (2016-03-22 16:20:45 UTC) #10
tkchin_webrtc
On 2016/03/22 10:24:22, kjellander (webrtc) wrote: > On 2016/03/22 05:27:53, tkchin_webrtc wrote: > > Android ...
4 years, 9 months ago (2016-03-22 17:09:11 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 9 months ago (2016-03-22 17:55:17 UTC) #13
tkchin_webrtc
Committed patchset #1 (id:20001) manually as f3cb49f3ef944f953603d2a2e80f5f9447c30434 (presubmit successful).
4 years, 9 months ago (2016-03-22 17:58:11 UTC) #16
commit-bot: I haz the power
4 years, 9 months ago (2016-03-22 17:58:11 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/f3cb49f3ef944f953603d2a2e80f5f9447c30434
Cr-Commit-Position: refs/heads/master@{#12089}

Powered by Google App Engine
This is Rietveld 408576698