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

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

Issue 341083007: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compile fix Created 6 years, 6 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_config_peer.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 11 matching lines...) Expand all
22 #include "net/quic/test_tools/mock_random.h" 22 #include "net/quic/test_tools/mock_random.h"
23 #include "net/spdy/spdy_framer.h" 23 #include "net/spdy/spdy_framer.h"
24 #include "testing/gmock/include/gmock/gmock.h" 24 #include "testing/gmock/include/gmock/gmock.h"
25 25
26 namespace net { 26 namespace net {
27 27
28 namespace test { 28 namespace test {
29 29
30 static const QuicConnectionId kTestConnectionId = 42; 30 static const QuicConnectionId kTestConnectionId = 42;
31 static const int kTestPort = 123; 31 static const int kTestPort = 123;
32 static const uint32 kInitialFlowControlWindowForTest = 32 * 1024; // 32 KB 32 static const uint32 kInitialStreamFlowControlWindowForTest =
33 32 * 1024; // 32 KB
34 static const uint32 kInitialSessionFlowControlWindowForTest =
35 64 * 1024; // 64 KB
33 36
34 // Data stream IDs start at 5: the crypto stream is 1, headers stream is 3. 37 // Data stream IDs start at 5: the crypto stream is 1, headers stream is 3.
35 static const QuicStreamId kClientDataStreamId1 = 5; 38 static const QuicStreamId kClientDataStreamId1 = 5;
36 static const QuicStreamId kClientDataStreamId2 = 7; 39 static const QuicStreamId kClientDataStreamId2 = 7;
37 static const QuicStreamId kClientDataStreamId3 = 9; 40 static const QuicStreamId kClientDataStreamId3 = 9;
38 static const QuicStreamId kClientDataStreamId4 = 11; 41 static const QuicStreamId kClientDataStreamId4 = 11;
39 42
40 // Returns the test peer IP address. 43 // Returns the test peer IP address.
41 IPAddressNumber TestPeerIPAddress(); 44 IPAddressNumber TestPeerIPAddress();
42 45
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 virtual ~MockAckNotifierDelegate(); 523 virtual ~MockAckNotifierDelegate();
521 524
522 private: 525 private:
523 DISALLOW_COPY_AND_ASSIGN(MockAckNotifierDelegate); 526 DISALLOW_COPY_AND_ASSIGN(MockAckNotifierDelegate);
524 }; 527 };
525 528
526 } // namespace test 529 } // namespace test
527 } // namespace net 530 } // namespace net
528 531
529 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 532 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_config_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