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

Side by Side Diff: net/quic/crypto/crypto_handshake_test.cc

Issue 14411004: Land Recent QUIC Changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use CONFIG_VERSION insteaf of VERSION Created 7 years, 8 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/crypto/crypto_handshake.h" 5 #include "net/quic/crypto/crypto_handshake.h"
6 6
7 #include "net/quic/crypto/aes_128_gcm_encrypter.h" 7 #include "net/quic/crypto/aes_128_gcm_encrypter.h"
8 #include "net/quic/crypto/crypto_server_config.h"
8 #include "net/quic/crypto/quic_random.h" 9 #include "net/quic/crypto/quic_random.h"
9 #include "net/quic/quic_time.h" 10 #include "net/quic/quic_time.h"
10 #include "net/quic/test_tools/mock_clock.h" 11 #include "net/quic/test_tools/mock_clock.h"
11 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
12 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
13 14
14 using base::StringPiece; 15 using base::StringPiece;
15 using std::string; 16 using std::string;
16 17
17 namespace net { 18 namespace net {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 76
76 now = original_time.Add(QuicTime::Delta::FromSeconds(86400 * 7)); 77 now = original_time.Add(QuicTime::Delta::FromSeconds(86400 * 7));
77 EXPECT_FALSE(peer.ValidateSourceAddressToken(token4, ip4, now)); 78 EXPECT_FALSE(peer.ValidateSourceAddressToken(token4, ip4, now));
78 79
79 now = original_time.Subtract(QuicTime::Delta::FromSeconds(3600 * 2)); 80 now = original_time.Subtract(QuicTime::Delta::FromSeconds(3600 * 2));
80 EXPECT_FALSE(peer.ValidateSourceAddressToken(token4, ip4, now)); 81 EXPECT_FALSE(peer.ValidateSourceAddressToken(token4, ip4, now));
81 } 82 }
82 83
83 } // namespace test 84 } // namespace test
84 } // namespace net 85 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698