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

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

Issue 497553004: Landing Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase with TOT Created 6 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/crypto/quic_crypto_server_config.cc ('k') | net/quic/crypto/source_address_token.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/quic_crypto_server_config.h" 5 #include "net/quic/crypto/quic_crypto_server_config.h"
6 6
7 #include <stdarg.h> 7 #include <stdarg.h>
8 8
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "net/quic/crypto/aes_128_gcm_12_encrypter.h" 10 #include "net/quic/crypto/aes_128_gcm_12_encrypter.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 return config->source_address_token_boxer == 49 return config->source_address_token_boxer ==
50 &(server_config_->default_source_address_token_boxer_); 50 &(server_config_->default_source_address_token_boxer_);
51 } 51 }
52 52
53 string NewSourceAddressToken( 53 string NewSourceAddressToken(
54 string config_id, 54 string config_id,
55 IPEndPoint ip, 55 IPEndPoint ip,
56 QuicRandom* rand, 56 QuicRandom* rand,
57 QuicWallTime now) { 57 QuicWallTime now) {
58 return server_config_->NewSourceAddressToken( 58 return server_config_->NewSourceAddressToken(
59 *GetConfig(config_id), ip, rand, now); 59 *GetConfig(config_id), ip, rand, now, NULL);
60 } 60 }
61 61
62 HandshakeFailureReason ValidateSourceAddressToken(string config_id, 62 HandshakeFailureReason ValidateSourceAddressToken(string config_id,
63 StringPiece srct, 63 StringPiece srct,
64 IPEndPoint ip, 64 IPEndPoint ip,
65 QuicWallTime now) { 65 QuicWallTime now) {
66 return server_config_->ValidateSourceAddressToken( 66 return server_config_->ValidateSourceAddressToken(
67 *GetConfig(config_id), srct, ip, now); 67 *GetConfig(config_id), srct, ip, now);
68 } 68 }
69 69
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 NULL); 661 NULL);
662 test_peer_.CheckConfigs( 662 test_peer_.CheckConfigs(
663 "a", false, 663 "a", false,
664 "b", true, 664 "b", true,
665 "c", false, 665 "c", false,
666 NULL); 666 NULL);
667 } 667 }
668 668
669 } // namespace test 669 } // namespace test
670 } // namespace net 670 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/crypto/quic_crypto_server_config.cc ('k') | net/quic/crypto/source_address_token.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698