OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |