| Index: net/quic/core/crypto/strike_register_test.cc
|
| diff --git a/net/quic/core/crypto/strike_register_test.cc b/net/quic/core/crypto/strike_register_test.cc
|
| index 1de07355eef21330a64cd484f6c3dd235e213c9e..07d1f2085eff6d712ae7e58012f0e74d5ffcaba4 100644
|
| --- a/net/quic/core/crypto/strike_register_test.cc
|
| +++ b/net/quic/core/crypto/strike_register_test.cc
|
| @@ -231,10 +231,11 @@ class SlowStrikeRegister {
|
| return NONCE_INVALID_TIME_FAILURE;
|
| }
|
|
|
| - pair<uint32_t, string> nonce = std::make_pair(
|
| + std::pair<uint32_t, string> nonce = std::make_pair(
|
| nonce_time, string(reinterpret_cast<const char*>(nonce_bytes), 32));
|
|
|
| - set<pair<uint32_t, string>>::const_iterator it = nonces_.find(nonce);
|
| + std::set<std::pair<uint32_t, string>>::const_iterator it =
|
| + nonces_.find(nonce);
|
| if (it != nonces_.end()) {
|
| return NONCE_NOT_UNIQUE_FAILURE;
|
| }
|
| @@ -271,7 +272,7 @@ class SlowStrikeRegister {
|
| }
|
|
|
| void DropOldestEntry() {
|
| - set<pair<uint32_t, string>>::iterator oldest = nonces_.begin();
|
| + std::set<std::pair<uint32_t, string>>::iterator oldest = nonces_.begin();
|
| horizon_ = oldest->first + 1;
|
| nonces_.erase(oldest);
|
| }
|
| @@ -282,7 +283,7 @@ class SlowStrikeRegister {
|
| uint8_t orbit_[8];
|
| uint32_t horizon_;
|
|
|
| - set<pair<uint32_t, string>> nonces_;
|
| + std::set<std::pair<uint32_t, string>> nonces_;
|
| };
|
|
|
| class StrikeRegisterStressTest : public ::testing::Test {};
|
|
|