OLD | NEW |
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 Loading... |
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 |
OLD | NEW |