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

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

Issue 497553004: Landing Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase with TOT Created 6 years, 4 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
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 <string> 10 #include <string>
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 MOCK_METHOD1(OnStreamFrames, void(const std::vector<QuicStreamFrame>& frame)); 232 MOCK_METHOD1(OnStreamFrames, void(const std::vector<QuicStreamFrame>& frame));
233 MOCK_METHOD1(OnWindowUpdateFrames, 233 MOCK_METHOD1(OnWindowUpdateFrames,
234 void(const std::vector<QuicWindowUpdateFrame>& frame)); 234 void(const std::vector<QuicWindowUpdateFrame>& frame));
235 MOCK_METHOD1(OnBlockedFrames, 235 MOCK_METHOD1(OnBlockedFrames,
236 void(const std::vector<QuicBlockedFrame>& frame)); 236 void(const std::vector<QuicBlockedFrame>& frame));
237 MOCK_METHOD1(OnRstStream, void(const QuicRstStreamFrame& frame)); 237 MOCK_METHOD1(OnRstStream, void(const QuicRstStreamFrame& frame));
238 MOCK_METHOD1(OnGoAway, void(const QuicGoAwayFrame& frame)); 238 MOCK_METHOD1(OnGoAway, void(const QuicGoAwayFrame& frame));
239 MOCK_METHOD2(OnConnectionClosed, void(QuicErrorCode error, bool from_peer)); 239 MOCK_METHOD2(OnConnectionClosed, void(QuicErrorCode error, bool from_peer));
240 MOCK_METHOD0(OnWriteBlocked, void()); 240 MOCK_METHOD0(OnWriteBlocked, void());
241 MOCK_METHOD0(OnCanWrite, void()); 241 MOCK_METHOD0(OnCanWrite, void());
242 MOCK_METHOD1(OnCongestionWindowChange, void(QuicTime now));
242 MOCK_CONST_METHOD0(WillingAndAbleToWrite, bool()); 243 MOCK_CONST_METHOD0(WillingAndAbleToWrite, bool());
243 MOCK_CONST_METHOD0(HasPendingHandshake, bool()); 244 MOCK_CONST_METHOD0(HasPendingHandshake, bool());
244 MOCK_CONST_METHOD0(HasOpenDataStreams, bool()); 245 MOCK_CONST_METHOD0(HasOpenDataStreams, bool());
245 MOCK_METHOD1(OnSuccessfulVersionNegotiation, 246 MOCK_METHOD1(OnSuccessfulVersionNegotiation,
246 void(const QuicVersion& version)); 247 void(const QuicVersion& version));
247 MOCK_METHOD0(OnConfigNegotiated, void()); 248 MOCK_METHOD0(OnConfigNegotiated, void());
248 249
249 private: 250 private:
250 DISALLOW_COPY_AND_ASSIGN(MockConnectionVisitor); 251 DISALLOW_COPY_AND_ASSIGN(MockConnectionVisitor);
251 }; 252 };
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 // clears the pointer to it to prevent use-after-free. 583 // clears the pointer to it to prevent use-after-free.
583 void Unregister(PerConnectionPacketWriter* writer); 584 void Unregister(PerConnectionPacketWriter* writer);
584 585
585 PerConnectionPacketWriter* current_writer_; 586 PerConnectionPacketWriter* current_writer_;
586 }; 587 };
587 588
588 } // namespace test 589 } // namespace test
589 } // namespace net 590 } // namespace net
590 591
591 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 592 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_sustained_bandwidth_recorder_peer.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