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

Unified Diff: net/quic/core/crypto/strike_register_test.cc

Issue 2460223002: Adds std:: to stl types (#049) (Closed)
Patch Set: remove dead using std::foo declarations. Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/core/crypto/strike_register.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {};
« no previous file with comments | « net/quic/core/crypto/strike_register.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698