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

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

Issue 146033003: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile error Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/test_tools/quic_test_packet_maker.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 <string> 10 #include <string>
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 private: 378 private:
379 QuicCryptoStream* crypto_stream_; 379 QuicCryptoStream* crypto_stream_;
380 DISALLOW_COPY_AND_ASSIGN(TestSession); 380 DISALLOW_COPY_AND_ASSIGN(TestSession);
381 }; 381 };
382 382
383 class MockPacketWriter : public QuicPacketWriter { 383 class MockPacketWriter : public QuicPacketWriter {
384 public: 384 public:
385 MockPacketWriter(); 385 MockPacketWriter();
386 virtual ~MockPacketWriter(); 386 virtual ~MockPacketWriter();
387 387
388 MOCK_METHOD5(WritePacket, 388 MOCK_METHOD4(WritePacket,
389 WriteResult(const char* buffer, 389 WriteResult(const char* buffer,
390 size_t buf_len, 390 size_t buf_len,
391 const IPAddressNumber& self_address, 391 const IPAddressNumber& self_address,
392 const IPEndPoint& peer_address, 392 const IPEndPoint& peer_address));
393 QuicBlockedWriterInterface* blocked_writer));
394 MOCK_CONST_METHOD0(IsWriteBlockedDataBuffered, bool()); 393 MOCK_CONST_METHOD0(IsWriteBlockedDataBuffered, bool());
395 MOCK_CONST_METHOD0(IsWriteBlocked, bool()); 394 MOCK_CONST_METHOD0(IsWriteBlocked, bool());
396 MOCK_METHOD0(SetWritable, void()); 395 MOCK_METHOD0(SetWritable, void());
397 }; 396 };
398 397
399 class MockSendAlgorithm : public SendAlgorithmInterface { 398 class MockSendAlgorithm : public SendAlgorithmInterface {
400 public: 399 public:
401 MockSendAlgorithm(); 400 MockSendAlgorithm();
402 virtual ~MockSendAlgorithm(); 401 virtual ~MockSendAlgorithm();
403 402
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 470
472 protected: 471 protected:
473 // Object is ref counted. 472 // Object is ref counted.
474 virtual ~MockAckNotifierDelegate(); 473 virtual ~MockAckNotifierDelegate();
475 }; 474 };
476 475
477 } // namespace test 476 } // namespace test
478 } // namespace net 477 } // namespace net
479 478
480 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 479 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_test_packet_maker.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