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

Issue 1847303006: MockTransportChannel::GetRemoteSSLCertificate: Prepare for base class change (Closed)

Created:
4 years, 8 months ago by kwiberg-chromium
Modified:
4 years, 8 months ago
Reviewers:
Sergey Ulanov
CC:
chromium-reviews, chromoting-reviews_chromium.org, torbjorng, tommi (sloooow) - chröme, perkj_chrome
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MockTransportChannel::GetRemoteSSLCertificate: Prepare for base class change See https://codereview.webrtc.org/1802013002/#msg3. TransportChannel::GetRemoteSSLCertificate is about to change signature; with this change, we can handle the new one as well as the old. BUG=webrtc:5520 Committed: https://crrev.com/2ee995f81fd62b01cc05f4d364343d18106d453d Cr-Commit-Position: refs/heads/master@{#385405}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M remoting/protocol/channel_socket_adapter_unittest.cc View 1 chunk +8 lines, -0 lines 2 comments Download

Dependent Patchsets:

Messages

Total messages: 10 (3 generated)
kwiberg-chromium
This needs to land before https://codereview.webrtc.org/1802013002/.
4 years, 8 months ago (2016-04-02 00:52:22 UTC) #2
Sergey Ulanov
lgtm https://codereview.chromium.org/1847303006/diff/1/remoting/protocol/channel_socket_adapter_unittest.cc File remoting/protocol/channel_socket_adapter_unittest.cc (right): https://codereview.chromium.org/1847303006/diff/1/remoting/protocol/channel_socket_adapter_unittest.cc#newcode61 remoting/protocol/channel_socket_adapter_unittest.cc:61: virtual rtc::scoped_ptr<rtc::SSLCertificate> GetRemoteSSLCertificate() const { I think this ...
4 years, 8 months ago (2016-04-05 18:05:24 UTC) #3
kwiberg-chromium
https://codereview.chromium.org/1847303006/diff/1/remoting/protocol/channel_socket_adapter_unittest.cc File remoting/protocol/channel_socket_adapter_unittest.cc (right): https://codereview.chromium.org/1847303006/diff/1/remoting/protocol/channel_socket_adapter_unittest.cc#newcode61 remoting/protocol/channel_socket_adapter_unittest.cc:61: virtual rtc::scoped_ptr<rtc::SSLCertificate> GetRemoteSSLCertificate() const { On 2016/04/05 18:05:23, Sergey ...
4 years, 8 months ago (2016-04-06 08:14:51 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1847303006/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1847303006/1
4 years, 8 months ago (2016-04-06 08:15:17 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 8 months ago (2016-04-06 08:53:34 UTC) #7
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/2ee995f81fd62b01cc05f4d364343d18106d453d Cr-Commit-Position: refs/heads/master@{#385405}
4 years, 8 months ago (2016-04-06 08:55:36 UTC) #9
Sergey Ulanov
4 years, 8 months ago (2016-04-06 22:36:58 UTC) #10
Message was sent while issue was closed.
On 2016/04/06 08:14:51, kwiberg-chromium wrote:
>
https://codereview.chromium.org/1847303006/diff/1/remoting/protocol/channel_s...
> File remoting/protocol/channel_socket_adapter_unittest.cc (right):
> 
>
https://codereview.chromium.org/1847303006/diff/1/remoting/protocol/channel_s...
> remoting/protocol/channel_socket_adapter_unittest.cc:61: virtual
> rtc::scoped_ptr<rtc::SSLCertificate> GetRemoteSSLCertificate() const {
> On 2016/04/05 18:05:23, Sergey Ulanov wrote:
> > I think this should be marked as override instead of virtual, and it won't
> > compile otherwise.
> 
> This code must compile both before and after the parent class has a method to
> override, and "override" causes a compilation error in the former case,
whereas
> "virtual" (as you say) causes a compilation error in the latter case.
> 
> However, the cause of the error in the latter case isn't something built-in,
but
> a Chromium-specific warning. And that warning appears to be written
specifically
> to not apply to classes that use the gmock MOCK_* macros (for a good reason:
> those macros predate C++11, and internally use virtual instead of override).
> 
> Relying on this is of course horribly ugly. But the second CL---to be landed
> after the WebRTC change---replaces "virtual" with "override".

I see. Thanks for the explanation

Powered by Google App Engine
This is Rietveld 408576698