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

Unified Diff: remoting/protocol/channel_socket_adapter_unittest.cc

Issue 1847303006: MockTransportChannel::GetRemoteSSLCertificate: Prepare for base class change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/channel_socket_adapter_unittest.cc
diff --git a/remoting/protocol/channel_socket_adapter_unittest.cc b/remoting/protocol/channel_socket_adapter_unittest.cc
index 3ecab7ee5e04420c2d723d57569a4f02091caa0c..bb67eafaf0b4c1771c0cb42fc0cbf2042766d71d 100644
--- a/remoting/protocol/channel_socket_adapter_unittest.cc
+++ b/remoting/protocol/channel_socket_adapter_unittest.cc
@@ -55,6 +55,14 @@ class MockTransportChannel : public cricket::TransportChannel {
rtc::scoped_refptr<rtc::RTCCertificate>());
MOCK_CONST_METHOD1(GetRemoteSSLCertificate,
bool(rtc::SSLCertificate** cert));
+
+ // This can't be a real mock method because gmock doesn't support move-only
+ // return values.
+ virtual rtc::scoped_ptr<rtc::SSLCertificate> GetRemoteSSLCertificate() const {
Sergey Ulanov 2016/04/05 18:05:23 I think this should be marked as override instead
kwiberg-chromium 2016/04/06 08:14:51 This code must compile both before and after the p
+ EXPECT_TRUE(false); // Never called.
+ return nullptr;
+ }
+
MOCK_METHOD6(ExportKeyingMaterial,
bool(const std::string& label,
const uint8_t* context,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698