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

Unified Diff: net/quic/crypto/crypto_server_test.cc

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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/crypto/crypto_server_config_protobuf.h ('k') | net/quic/crypto/crypto_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/crypto_server_test.cc
diff --git a/net/quic/crypto/crypto_server_test.cc b/net/quic/crypto/crypto_server_test.cc
index be0409cc7200d1169fb7b787614b620c8001c9c4..b1ea7f090d6bb4e2433b0ddb5b36d2670821916e 100644
--- a/net/quic/crypto/crypto_server_test.cc
+++ b/net/quic/crypto/crypto_server_test.cc
@@ -5,7 +5,6 @@
#include <ostream>
#include <vector>
-#include "base/basictypes.h"
#include "base/strings/string_number_conversions.h"
#include "crypto/secure_hash.h"
#include "net/quic/crypto/cert_compressor.h"
@@ -324,9 +323,9 @@ class CryptoServerTest : public ::testing::TestWithParam<TestParams> {
void CheckRejectReasons(
const HandshakeFailureReason* expected_handshake_failures,
size_t expected_count) {
- const uint32* reject_reasons;
+ const uint32_t* reject_reasons;
size_t num_reject_reasons;
- static_assert(sizeof(QuicTag) == sizeof(uint32), "header_out_of_sync");
+ static_assert(sizeof(QuicTag) == sizeof(uint32_t), "header_out_of_sync");
QuicErrorCode error_code =
out_.GetTaglist(kRREJ, &reject_reasons, &num_reject_reasons);
ASSERT_EQ(QUIC_NO_ERROR, error_code);
@@ -385,7 +384,7 @@ class CryptoServerTest : public ::testing::TestWithParam<TestParams> {
}
std::ostringstream xlct_stream;
- uint64 xlct =
+ uint64_t xlct =
QuicUtils::FNV1a_64_Hash(certs->at(0).c_str(), certs->at(0).length());
return "#" + base::HexEncode(reinterpret_cast<char*>(&xlct), sizeof(xlct));
}
@@ -403,7 +402,7 @@ class CryptoServerTest : public ::testing::TestWithParam<TestParams> {
QuicCryptoNegotiatedParameters params_;
QuicCryptoProof crypto_proof_;
CryptoHandshakeMessage out_;
- uint8 orbit_[kOrbitSize];
+ uint8_t orbit_[kOrbitSize];
bool use_stateless_rejects_;
// These strings contain hex escaped values from the server suitable for using
@@ -1012,7 +1011,7 @@ TEST(CryptoServerConfigGenerationTest, SCIDIsHashOfServerConfig) {
scoped_ptr<crypto::SecureHash> hash(
crypto::SecureHash::Create(crypto::SecureHash::SHA256));
hash->Update(serialized.data(), serialized.length());
- uint8 digest[16];
+ uint8_t digest[16];
hash->Finish(digest, sizeof(digest));
ASSERT_EQ(scid.size(), sizeof(digest));
@@ -1107,9 +1106,9 @@ class AsyncStrikeServerVerificationTest : public CryptoServerTest {
config_options_.orbit = kOrbit;
strike_register_client_ = new DelayedVerifyStrikeRegisterClient(
10000, // strike_register_max_entries
- static_cast<uint32>(clock_.WallNow().ToUNIXSeconds()),
+ static_cast<uint32_t>(clock_.WallNow().ToUNIXSeconds()),
60, // strike_register_window_secs
- reinterpret_cast<const uint8*>(kOrbit.c_str()),
+ reinterpret_cast<const uint8_t*>(kOrbit.c_str()),
StrikeRegister::NO_STARTUP_PERIOD_NEEDED);
config_.SetStrikeRegisterClient(strike_register_client_);
CryptoServerTest::SetUp();
« no previous file with comments | « net/quic/crypto/crypto_server_config_protobuf.h ('k') | net/quic/crypto/crypto_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698