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

Side by Side Diff: net/quic/test_tools/quic_test_utils.h

Issue 1782743005: Add QuicCompressedCertsCache* to QuicCrytoServerStream plumbed from QuicServerSessionBase. No behav… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@116387934
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 unified diff | Download patch
« no previous file with comments | « net/quic/quic_crypto_server_stream.cc ('k') | net/quic/test_tools/quic_test_utils.cc » ('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 // Common utilities for Quic tests 5 // Common utilities for Quic tests
6 6
7 #ifndef NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 7 #ifndef NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
8 #define NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 8 #define NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
9 9
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 TestQuicSpdyServerSession(QuicConnection* connection, 510 TestQuicSpdyServerSession(QuicConnection* connection,
511 const QuicConfig& config, 511 const QuicConfig& config,
512 const QuicCryptoServerConfig* crypto_config, 512 const QuicCryptoServerConfig* crypto_config,
513 QuicCompressedCertsCache* compressed_certs_cache); 513 QuicCompressedCertsCache* compressed_certs_cache);
514 ~TestQuicSpdyServerSession() override; 514 ~TestQuicSpdyServerSession() override;
515 515
516 MOCK_METHOD1(CreateIncomingDynamicStream, QuicSpdyStream*(QuicStreamId id)); 516 MOCK_METHOD1(CreateIncomingDynamicStream, QuicSpdyStream*(QuicStreamId id));
517 MOCK_METHOD1(CreateOutgoingDynamicStream, 517 MOCK_METHOD1(CreateOutgoingDynamicStream,
518 QuicSpdyStream*(SpdyPriority priority)); 518 QuicSpdyStream*(SpdyPriority priority));
519 QuicCryptoServerStreamBase* CreateQuicCryptoServerStream( 519 QuicCryptoServerStreamBase* CreateQuicCryptoServerStream(
520 const QuicCryptoServerConfig* crypto_config) override; 520 const QuicCryptoServerConfig* crypto_config,
521 QuicCompressedCertsCache* compressed_certs_cache) override;
521 522
522 QuicCryptoServerStream* GetCryptoStream() override; 523 QuicCryptoServerStream* GetCryptoStream() override;
523 524
524 private: 525 private:
525 MockQuicServerSessionVisitor visitor_; 526 MockQuicServerSessionVisitor visitor_;
526 527
527 DISALLOW_COPY_AND_ASSIGN(TestQuicSpdyServerSession); 528 DISALLOW_COPY_AND_ASSIGN(TestQuicSpdyServerSession);
528 }; 529 };
529 530
530 class TestQuicSpdyClientSession : public QuicClientSessionBase { 531 class TestQuicSpdyClientSession : public QuicClientSessionBase {
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 TestQuicSpdyServerSession** server_session); 811 TestQuicSpdyServerSession** server_session);
811 812
812 // Helper to generate client side stream ids, generalizes 813 // Helper to generate client side stream ids, generalizes
813 // kClientDataStreamId1 etc. above. 814 // kClientDataStreamId1 etc. above.
814 QuicStreamId QuicClientDataStreamId(int i); 815 QuicStreamId QuicClientDataStreamId(int i);
815 816
816 } // namespace test 817 } // namespace test
817 } // namespace net 818 } // namespace net
818 819
819 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 820 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/quic/quic_crypto_server_stream.cc ('k') | net/quic/test_tools/quic_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698