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

Side by Side Diff: net/quic/quic_chromium_client_stream_test.cc

Issue 2097123002: QUIC - Race Cert Verification with host resolution if certs are (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Race cert verification. Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « net/quic/quic_chromium_client_session.cc ('k') | net/quic/quic_crypto_client_stream.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/quic/quic_chromium_client_stream.h" 5 #include "net/quic/quic_chromium_client_stream.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // has been consumed. 106 // has been consumed.
107 static QuicConsumedData ConsumeAllData( 107 static QuicConsumedData ConsumeAllData(
108 QuicStreamId id, 108 QuicStreamId id,
109 const QuicIOVector& data, 109 const QuicIOVector& data,
110 QuicStreamOffset offset, 110 QuicStreamOffset offset,
111 bool fin, 111 bool fin,
112 QuicAckListenerInterface* ack_notifier_delegate); 112 QuicAckListenerInterface* ack_notifier_delegate);
113 113
114 void OnProofValid( 114 void OnProofValid(
115 const QuicCryptoClientConfig::CachedState& cached) override {} 115 const QuicCryptoClientConfig::CachedState& cached) override {}
116 void OnChannelValid() override {}
116 void OnProofVerifyDetailsAvailable( 117 void OnProofVerifyDetailsAvailable(
117 const ProofVerifyDetails& verify_details) override {} 118 const ProofVerifyDetails& verify_details) override {}
118 bool IsAuthorized(const std::string& hostname) override { return true; } 119 bool IsAuthorized(const std::string& hostname) override { return true; }
119 120
120 protected: 121 protected:
121 MOCK_METHOD1(ShouldCreateIncomingDynamicStream, bool(QuicStreamId id)); 122 MOCK_METHOD1(ShouldCreateIncomingDynamicStream, bool(QuicStreamId id));
122 MOCK_METHOD0(ShouldCreateOutgoingDynamicStream, bool()); 123 MOCK_METHOD0(ShouldCreateOutgoingDynamicStream, bool());
123 124
124 private: 125 private:
125 std::unique_ptr<QuicCryptoStream> crypto_stream_; 126 std::unique_ptr<QuicCryptoStream> crypto_stream_;
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 stream->SetDelegate(&delegate_); 533 stream->SetDelegate(&delegate_);
533 base::RunLoop().RunUntilIdle(); 534 base::RunLoop().RunUntilIdle();
534 535
535 // Times(2) because OnClose will be called for stream and stream_. 536 // Times(2) because OnClose will be called for stream and stream_.
536 EXPECT_CALL(delegate_, OnClose()).Times(2); 537 EXPECT_CALL(delegate_, OnClose()).Times(2);
537 } 538 }
538 539
539 } // namespace 540 } // namespace
540 } // namespace test 541 } // namespace test
541 } // namespace net 542 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_chromium_client_session.cc ('k') | net/quic/quic_crypto_client_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698