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

Issue 2722423003: Improve testing of SRTP external auth code paths. (Closed)

Created:
3 years, 9 months ago by joachim
Modified:
3 years, 9 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Improve testing of SRTP external auth code paths. Previously code behind ENABLE_EXTERNAL_AUTH was only compiled with Chromium but developed in WebRTC, which made testing rather complicated. This caused some trouble in the past (e.g. https://crbug.com/628400#c1) This CL helps in that the external auth code is now compiled with WebRTC and the srtpfilter integration gets tested. BUG=chromium:628400 Review-Url: https://codereview.webrtc.org/2722423003 Cr-Commit-Position: refs/heads/master@{#17030} Committed: https://chromium.googlesource.com/external/webrtc/+/ac170d5c214e1f487ba82b888e5c3d5000118de0

Patch Set 1 #

Total comments: 13

Patch Set 2 : Changes based on feedback from Taylor. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -141 lines) Patch
M webrtc/pc/BUILD.gn View 2 chunks +2 lines, -6 lines 0 comments Download
M webrtc/pc/channel.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/pc/externalhmac.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/pc/externalhmac.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/pc/srtpfilter.h View 1 4 chunks +20 lines, -8 lines 0 comments Download
M webrtc/pc/srtpfilter.cc View 1 9 chunks +25 lines, -18 lines 0 comments Download
M webrtc/pc/srtpfilter_unittest.cc View 1 5 chunks +95 lines, -105 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
joachim
Ptal, this is a follow-up to https://codereview.webrtc.org/2720663003/
3 years, 9 months ago (2017-03-03 00:32:59 UTC) #2
Taylor Brandstetter
https://codereview.webrtc.org/2722423003/diff/1/webrtc/pc/srtpfilter.cc File webrtc/pc/srtpfilter.cc (right): https://codereview.webrtc.org/2722423003/diff/1/webrtc/pc/srtpfilter.cc#newcode57 webrtc/pc/srtpfilter.cc:57: #endif Another option, which I slightly prefer, would be ...
3 years, 9 months ago (2017-03-03 02:20:35 UTC) #3
joachim
Thanks for your feedback! All comments addressed, ptal. https://codereview.webrtc.org/2722423003/diff/1/webrtc/pc/srtpfilter.cc File webrtc/pc/srtpfilter.cc (right): https://codereview.webrtc.org/2722423003/diff/1/webrtc/pc/srtpfilter.cc#newcode57 webrtc/pc/srtpfilter.cc:57: #endif ...
3 years, 9 months ago (2017-03-03 20:42:57 UTC) #4
Taylor Brandstetter
lgtm https://codereview.webrtc.org/2722423003/diff/1/webrtc/pc/srtpfilter.cc File webrtc/pc/srtpfilter.cc (right): https://codereview.webrtc.org/2722423003/diff/1/webrtc/pc/srtpfilter.cc#newcode57 webrtc/pc/srtpfilter.cc:57: #endif On 2017/03/03 20:42:57, joachim wrote: > On ...
3 years, 9 months ago (2017-03-03 23:03:57 UTC) #5
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/2722423003/20001
3 years, 9 months ago (2017-03-04 08:33:29 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/external/webrtc/+/ac170d5c214e1f487ba82b888e5c3d5000118de0
3 years, 9 months ago (2017-03-04 08:54:50 UTC) #10
joachim
3 years, 9 months ago (2017-03-04 09:37:13 UTC) #11
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.webrtc.org/2734643002/ by jbauch@webrtc.org.

The reason for reverting is: Breaks compilation in FYI bots, e.g. here:
http://build.chromium.org/p/chromium.webrtc.fyi/builders/Win%20Builder/builds...

FAILED: obj/third_party/webrtc/pc/rtc_pc/channel.obj 
ninja -t msvc -e environment.x86 -- E:\b\c\goma_client/gomacc.exe
"E:\b\depot_tools\win_toolchain\vs_files\d3cb0e37bdd120ad0ac4650b674b09e81be45616\VC\bin\amd64_x86/cl.exe"
/nologo /showIncludes /FC @obj/third_party/webrtc/pc/rtc_pc/channel.obj.rsp /c
../../third_party/webrtc/pc/channel.cc
/Foobj/third_party/webrtc/pc/rtc_pc/channel.obj
/Fd"obj/third_party/webrtc/pc/rtc_pc_cc.pdb"
e:\b\c\b\win_builder\src\third_party\webrtc\pc\channel.cc(176): error C2819:
type 'cricket::SrtpFilter' does not have an overloaded member 'operator ->'
e:\b\c\b\win_builder\src\third_party\webrtc\pc\srtpfilter.h(45): note: see
declaration of 'cricket::SrtpFilter'
e:\b\c\b\win_builder\src\third_party\webrtc\pc\channel.cc(176): note: did you
intend to use '.' instead?
e:\b\c\b\win_builder\src\third_party\webrtc\pc\channel.cc(176): error C2232:
'->cricket::SrtpFilter::EnableExternalAuth': left operand has 'class' type, use
'.'.

Powered by Google App Engine
This is Rietveld 408576698