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

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

Issue 2241183004: Landing Recent QUIC changes until Sat Aug 13 04:32:36 2016 UTC-0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compiler error. Created 4 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
« no previous file with comments | « net/quic/core/reliable_quic_stream_test.cc ('k') | net/tools/quic/end_to_end_test.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 21 matching lines...) Expand all
32 #include "net/quic/test_tools/mock_clock.h" 32 #include "net/quic/test_tools/mock_clock.h"
33 #include "net/quic/test_tools/mock_random.h" 33 #include "net/quic/test_tools/mock_random.h"
34 #include "net/spdy/spdy_framer.h" 34 #include "net/spdy/spdy_framer.h"
35 #include "net/tools/quic/quic_dispatcher.h" 35 #include "net/tools/quic/quic_dispatcher.h"
36 #include "net/tools/quic/quic_per_connection_packet_writer.h" 36 #include "net/tools/quic/quic_per_connection_packet_writer.h"
37 #include "net/tools/quic/test_tools/mock_quic_server_session_visitor.h" 37 #include "net/tools/quic/test_tools/mock_quic_server_session_visitor.h"
38 #include "testing/gmock/include/gmock/gmock.h" 38 #include "testing/gmock/include/gmock/gmock.h"
39 39
40 using base::StringPiece; 40 using base::StringPiece;
41 41
42 // EXPECT_QUIC_BUG is like EXPECT_DFATAL, except it ensures that no DFATAL
43 // logging is skipped due to exponential backoff.
44 //
45 // For external QUIC, EXPECT_QUIC_BUG should be #defined to EXPECT_DFATAL.
46 #define EXPECT_QUIC_BUG EXPECT_DFATAL
47
42 namespace net { 48 namespace net {
43 49
44 namespace test { 50 namespace test {
45 51
46 static const QuicConnectionId kTestConnectionId = 42; 52 static const QuicConnectionId kTestConnectionId = 42;
47 static const uint16_t kTestPort = 123; 53 static const uint16_t kTestPort = 123;
48 static const uint32_t kInitialStreamFlowControlWindowForTest = 54 static const uint32_t kInitialStreamFlowControlWindowForTest =
49 1024 * 1024; // 1 MB 55 1024 * 1024; // 1 MB
50 static const uint32_t kInitialSessionFlowControlWindowForTest = 56 static const uint32_t kInitialSessionFlowControlWindowForTest =
51 1536 * 1024; // 1.5 MB 57 1536 * 1024; // 1.5 MB
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after
1023 TestQuicSpdyServerSession** server_session); 1029 TestQuicSpdyServerSession** server_session);
1024 1030
1025 // Helper to generate client side stream ids, generalizes 1031 // Helper to generate client side stream ids, generalizes
1026 // kClientDataStreamId1 etc. above. 1032 // kClientDataStreamId1 etc. above.
1027 QuicStreamId QuicClientDataStreamId(int i); 1033 QuicStreamId QuicClientDataStreamId(int i);
1028 1034
1029 } // namespace test 1035 } // namespace test
1030 } // namespace net 1036 } // namespace net
1031 1037
1032 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 1038 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/quic/core/reliable_quic_stream_test.cc ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698