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

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

Issue 718273002: Use uint16 for port numbers, net/ edition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comment Created 6 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
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 13 matching lines...) Expand all
24 #include "net/quic/test_tools/mock_clock.h" 24 #include "net/quic/test_tools/mock_clock.h"
25 #include "net/quic/test_tools/mock_random.h" 25 #include "net/quic/test_tools/mock_random.h"
26 #include "net/spdy/spdy_framer.h" 26 #include "net/spdy/spdy_framer.h"
27 #include "testing/gmock/include/gmock/gmock.h" 27 #include "testing/gmock/include/gmock/gmock.h"
28 28
29 namespace net { 29 namespace net {
30 30
31 namespace test { 31 namespace test {
32 32
33 static const QuicConnectionId kTestConnectionId = 42; 33 static const QuicConnectionId kTestConnectionId = 42;
34 static const int kTestPort = 123; 34 static const uint16 kTestPort = 123;
35 static const uint32 kInitialStreamFlowControlWindowForTest = 35 static const uint32 kInitialStreamFlowControlWindowForTest =
36 32 * 1024; // 32 KB 36 32 * 1024; // 32 KB
37 static const uint32 kInitialSessionFlowControlWindowForTest = 37 static const uint32 kInitialSessionFlowControlWindowForTest =
38 64 * 1024; // 64 KB 38 64 * 1024; // 64 KB
39 39
40 // Data stream IDs start at 5: the crypto stream is 1, headers stream is 3. 40 // Data stream IDs start at 5: the crypto stream is 1, headers stream is 3.
41 static const QuicStreamId kClientDataStreamId1 = 5; 41 static const QuicStreamId kClientDataStreamId1 = 5;
42 static const QuicStreamId kClientDataStreamId2 = 7; 42 static const QuicStreamId kClientDataStreamId2 = 7;
43 static const QuicStreamId kClientDataStreamId3 = 9; 43 static const QuicStreamId kClientDataStreamId3 = 9;
44 static const QuicStreamId kClientDataStreamId4 = 11; 44 static const QuicStreamId kClientDataStreamId4 = 11;
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 // clears the pointer to it to prevent use-after-free. 580 // clears the pointer to it to prevent use-after-free.
581 void Unregister(PerConnectionPacketWriter* writer); 581 void Unregister(PerConnectionPacketWriter* writer);
582 582
583 PerConnectionPacketWriter* current_writer_; 583 PerConnectionPacketWriter* current_writer_;
584 }; 584 };
585 585
586 } // namespace test 586 } // namespace test
587 } // namespace net 587 } // namespace net
588 588
589 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 589 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698