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

Side by Side Diff: net/quic/quic_framer_test.cc

Issue 131743009: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use size_t instead of int to fix win_x64 compile error Created 6 years, 11 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/quic_fec_group_test.cc ('k') | net/quic/quic_http_stream_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 #include "net/quic/quic_framer.h"
6
5 #include <algorithm> 7 #include <algorithm>
6 #include <map> 8 #include <map>
7 #include <string> 9 #include <string>
8 #include <vector> 10 #include <vector>
9 11
10 #include "base/containers/hash_tables.h" 12 #include "base/containers/hash_tables.h"
11 #include "base/logging.h" 13 #include "base/logging.h"
12 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
13 #include "base/port.h" 15 #include "base/port.h"
14 #include "base/stl_util.h" 16 #include "base/stl_util.h"
15 #include "net/quic/crypto/quic_decrypter.h" 17 #include "net/quic/crypto/quic_decrypter.h"
16 #include "net/quic/crypto/quic_encrypter.h" 18 #include "net/quic/crypto/quic_encrypter.h"
17 #include "net/quic/quic_framer.h"
18 #include "net/quic/quic_protocol.h" 19 #include "net/quic/quic_protocol.h"
19 #include "net/quic/quic_utils.h" 20 #include "net/quic/quic_utils.h"
20 #include "net/quic/test_tools/quic_framer_peer.h" 21 #include "net/quic/test_tools/quic_framer_peer.h"
21 #include "net/quic/test_tools/quic_test_utils.h" 22 #include "net/quic/test_tools/quic_test_utils.h"
22 23
23 using base::hash_set; 24 using base::hash_set;
24 using base::StringPiece; 25 using base::StringPiece;
25 using std::make_pair; 26 using std::make_pair;
26 using std::map; 27 using std::map;
27 using std::numeric_limits; 28 using std::numeric_limits;
(...skipping 3484 matching lines...) Expand 10 before | Expand all | Expand 10 after
3512 EXPECT_CALL(visitor, OnPacketComplete()); 3513 EXPECT_CALL(visitor, OnPacketComplete());
3513 EXPECT_CALL(visitor, OnUnauthenticatedPublicHeader(_)).WillOnce(Return(true)); 3514 EXPECT_CALL(visitor, OnUnauthenticatedPublicHeader(_)).WillOnce(Return(true));
3514 3515
3515 QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); 3516 QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false);
3516 EXPECT_TRUE(framer_.ProcessPacket(encrypted)); 3517 EXPECT_TRUE(framer_.ProcessPacket(encrypted));
3517 EXPECT_EQ(QUIC_NO_ERROR, framer_.error()); 3518 EXPECT_EQ(QUIC_NO_ERROR, framer_.error());
3518 } 3519 }
3519 3520
3520 } // namespace test 3521 } // namespace test
3521 } // namespace net 3522 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_fec_group_test.cc ('k') | net/quic/quic_http_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698