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

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

Issue 2460163002: Refactor QuicServerSessionBase::Visitor (Closed)
Patch Set: Updated patchset dependency Created 4 years, 1 month 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/core/quic_spdy_session.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 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 QuicSpdyStream*(SpdyPriority priority)); 659 QuicSpdyStream*(SpdyPriority priority));
660 QuicCryptoServerStreamBase* CreateQuicCryptoServerStream( 660 QuicCryptoServerStreamBase* CreateQuicCryptoServerStream(
661 const QuicCryptoServerConfig* crypto_config, 661 const QuicCryptoServerConfig* crypto_config,
662 QuicCompressedCertsCache* compressed_certs_cache) override; 662 QuicCompressedCertsCache* compressed_certs_cache) override;
663 663
664 QuicCryptoServerStream* GetCryptoStream() override; 664 QuicCryptoServerStream* GetCryptoStream() override;
665 665
666 MockQuicCryptoServerStreamHelper* helper() { return &helper_; } 666 MockQuicCryptoServerStreamHelper* helper() { return &helper_; }
667 667
668 private: 668 private:
669 MockQuicServerSessionVisitor visitor_; 669 MockQuicSessionVisitor visitor_;
670 MockQuicCryptoServerStreamHelper helper_; 670 MockQuicCryptoServerStreamHelper helper_;
671 671
672 DISALLOW_COPY_AND_ASSIGN(TestQuicSpdyServerSession); 672 DISALLOW_COPY_AND_ASSIGN(TestQuicSpdyServerSession);
673 }; 673 };
674 674
675 class TestQuicSpdyClientSession : public QuicClientSessionBase { 675 class TestQuicSpdyClientSession : public QuicClientSessionBase {
676 public: 676 public:
677 TestQuicSpdyClientSession(QuicConnection* connection, 677 TestQuicSpdyClientSession(QuicConnection* connection,
678 const QuicConfig& config, 678 const QuicConfig& config,
679 const QuicServerId& server_id, 679 const QuicServerId& server_id,
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
1057 l.OnHeader(p.first, p.second); 1057 l.OnHeader(p.first, p.second);
1058 } 1058 }
1059 l.OnHeaderBlockEnd(total_size); 1059 l.OnHeaderBlockEnd(total_size);
1060 return l; 1060 return l;
1061 } 1061 }
1062 1062
1063 } // namespace test 1063 } // namespace test
1064 } // namespace net 1064 } // namespace net
1065 1065
1066 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 1066 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_spdy_session.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