| Index: webrtc/api/webrtcsession_unittest.cc | 
| diff --git a/webrtc/api/webrtcsession_unittest.cc b/webrtc/api/webrtcsession_unittest.cc | 
| index b96236d218cabdba6fccf8407c760448c75730fc..c361891cda12200e0489ec9565800c7244b57c87 100644 | 
| --- a/webrtc/api/webrtcsession_unittest.cc | 
| +++ b/webrtc/api/webrtcsession_unittest.cc | 
| @@ -550,6 +550,8 @@ class WebRtcSessionTest | 
|  | 
| if (session_->data_channel_type() == cricket::DCT_SCTP && data_channel_) { | 
| session_options->data_channel_type = cricket::DCT_SCTP; | 
| +    } else if (session_->data_channel_type() == cricket::DCT_QUIC) { | 
| +      session_options->data_channel_type = cricket::DCT_QUIC; | 
| } | 
| } | 
|  | 
| @@ -563,9 +565,7 @@ class WebRtcSessionTest | 
| (session_options->has_audio() || session_options->has_video() || | 
| session_options->has_data()); | 
|  | 
| -    if (session_->data_channel_type() == cricket::DCT_SCTP) { | 
| -      session_options->data_channel_type = cricket::DCT_SCTP; | 
| -    } | 
| +    session_options->data_channel_type = session_->data_channel_type(); | 
| } | 
|  | 
| // Creates a local offer and applies it. Starts ICE. | 
| @@ -4154,6 +4154,26 @@ TEST_P(WebRtcSessionTest, TestRenegotiateNewMediaWithCandidatesSeparated) { | 
| SetLocalDescriptionWithoutError(answer); | 
| } | 
|  | 
| +#ifdef HAVE_QUIC | 
| +TEST_P(WebRtcSessionTest, TestNegotiateQuic) { | 
| +  configuration_.enable_quic = true; | 
| +  InitWithDtls(GetParam()); | 
| +  EXPECT_TRUE(session_->data_channel_type() == cricket::DCT_QUIC); | 
| +  SessionDescriptionInterface* offer = CreateOffer(); | 
| +  ASSERT_TRUE(offer); | 
| +  ASSERT_TRUE(offer->description()); | 
| +  SetLocalDescriptionWithoutError(offer); | 
| +  cricket::MediaSessionOptions options; | 
| +  options.recv_audio = true; | 
| +  options.recv_video = true; | 
| +  SessionDescriptionInterface* answer = | 
| +      CreateRemoteAnswer(offer, options, cricket::SEC_DISABLED); | 
| +  ASSERT_TRUE(answer); | 
| +  ASSERT_TRUE(answer->description()); | 
| +  SetRemoteDescriptionWithoutError(answer); | 
| +} | 
| +#endif  // HAVE_QUIC | 
| + | 
| // Tests that RTX codec is removed from the answer when it isn't supported | 
| // by local side. | 
| TEST_F(WebRtcSessionTest, TestRtxRemovedByCreateAnswer) { | 
|  |