Index: webrtc/api/test/fakedtlsidentitystore.h |
diff --git a/webrtc/api/test/fakedtlsidentitystore.h b/webrtc/api/test/fakedtlsidentitystore.h |
index 7c8a4fc71faa5741aafc74e7fc3fa0b4f2f86ff8..8bbffbf93e96e63c6ea1a54da8b00a559802d633 100644 |
--- a/webrtc/api/test/fakedtlsidentitystore.h |
+++ b/webrtc/api/test/fakedtlsidentitystore.h |
@@ -96,14 +96,15 @@ class FakeDtlsIdentityStore : public webrtc::DtlsIdentityStoreInterface, |
void use_alternate_key() { key_index_ = 1; } |
void RequestIdentity( |
- rtc::KeyParams key_params, |
- rtc::Optional<uint64_t> expires, |
+ const rtc::KeyParams& key_params, |
+ const rtc::Optional<uint64_t>& expires_ms, |
const rtc::scoped_refptr<webrtc::DtlsIdentityRequestObserver>& |
observer) override { |
// TODO(hbos): Should be able to generate KT_ECDSA too. |
RTC_DCHECK((key_params.type() == rtc::KT_RSA && |
key_params.rsa_params().mod_size == 1024 && |
- key_params.rsa_params().pub_exp == 0x10001) || |
+ key_params.rsa_params().pub_exp == 0x10001 && |
+ !expires_ms) || |
should_fail_); |
MessageData* msg = new MessageData( |
rtc::scoped_refptr<webrtc::DtlsIdentityRequestObserver>(observer)); |