| OLD | NEW |
| 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 #ifndef NET_QUIC_TEST_TOOLS_DELAYED_VERIFY_STRIKE_REGISTER_CLIENT_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_DELAYED_VERIFY_STRIKE_REGISTER_CLIENT_H_ |
| 6 #define NET_QUIC_TEST_TOOLS_DELAYED_VERIFY_STRIKE_REGISTER_CLIENT_H_ | 6 #define NET_QUIC_TEST_TOOLS_DELAYED_VERIFY_STRIKE_REGISTER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/strings/string_piece.h" | 14 #include "base/strings/string_piece.h" |
| 15 #include "net/quic/crypto/local_strike_register_client.h" | 15 #include "net/quic/core/crypto/local_strike_register_client.h" |
| 16 | 16 |
| 17 namespace net { | 17 namespace net { |
| 18 namespace test { | 18 namespace test { |
| 19 | 19 |
| 20 // Test helper that allows delaying execution of nonce verification | 20 // Test helper that allows delaying execution of nonce verification |
| 21 // callbacks until a later time. | 21 // callbacks until a later time. |
| 22 class DelayedVerifyStrikeRegisterClient : public LocalStrikeRegisterClient { | 22 class DelayedVerifyStrikeRegisterClient : public LocalStrikeRegisterClient { |
| 23 public: | 23 public: |
| 24 DelayedVerifyStrikeRegisterClient(unsigned max_entries, | 24 DelayedVerifyStrikeRegisterClient(unsigned max_entries, |
| 25 uint32_t current_time_external, | 25 uint32_t current_time_external, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 54 bool delay_verifications_; | 54 bool delay_verifications_; |
| 55 std::vector<VerifyArgs> pending_verifications_; | 55 std::vector<VerifyArgs> pending_verifications_; |
| 56 | 56 |
| 57 DISALLOW_COPY_AND_ASSIGN(DelayedVerifyStrikeRegisterClient); | 57 DISALLOW_COPY_AND_ASSIGN(DelayedVerifyStrikeRegisterClient); |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } // namespace test | 60 } // namespace test |
| 61 } // namespace net | 61 } // namespace net |
| 62 | 62 |
| 63 #endif // NET_QUIC_TEST_TOOLS_DELAYED_VERIFY_STRIKE_REGISTER_CLIENT_H_ | 63 #endif // NET_QUIC_TEST_TOOLS_DELAYED_VERIFY_STRIKE_REGISTER_CLIENT_H_ |
| OLD | NEW |