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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats_unittest.cc

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats_unittest.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats_unittest.cc
index 6b1d2d309c4b017b5c2d9d6ebc3ff8db33a1908e..b4515a1ba66f47ebe8d7c2108e597798b348f4ab 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats_unittest.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats_unittest.cc
@@ -4,6 +4,8 @@
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats.h"
+#include <stdint.h>
+
#include <map>
#include "base/metrics/field_trial.h"
@@ -20,7 +22,7 @@
namespace {
// Test value for how long a Data Reduction Proxy configuration should be valid.
-const int64 kConfigExpirationSeconds = 60 * 60 * 24;
+const int64_t kConfigExpirationSeconds = 60 * 60 * 24;
} // namespace
@@ -28,7 +30,7 @@ namespace data_reduction_proxy {
class DataReductionProxyExperimentsStatsTest : public testing::Test {
public:
- void SetPrefValue(const std::string& path, int64 value) {}
+ void SetPrefValue(const std::string& path, int64_t value) {}
protected:
void SetUp() override {
@@ -38,10 +40,10 @@ class DataReductionProxyExperimentsStatsTest : public testing::Test {
void SetConfigExperimentValues(
bool enabled,
const base::TimeDelta& retrieve_offset_from_now,
- int64 roundtrip_milliseconds_base,
+ int64_t roundtrip_milliseconds_base,
double roundtrip_multiplier,
- int64 roundtrip_milliseconds_increment,
- int64 expiration_seconds,
+ int64_t roundtrip_milliseconds_increment,
+ int64_t expiration_seconds,
bool always_stale) {
variations::testing::ClearAllVariationParams();
std::map<std::string, std::string> variation_params;
@@ -92,11 +94,11 @@ TEST_F(DataReductionProxyExperimentsStatsTest, CheckConfigHistograms) {
struct {
DataReductionProxyRequestType request_type;
base::Time request_time;
- int64 received_content_length;
- int64 original_content_length;
- int64 expected_received_content_length;
- int64 expected_original_content_length;
- int64 expected_diff;
+ int64_t received_content_length;
+ int64_t original_content_length;
+ int64_t expected_received_content_length;
+ int64_t expected_original_content_length;
+ int64_t expected_diff;
} test_cases[] = {
{
VIA_DATA_REDUCTION_PROXY,

Powered by Google App Engine
This is Rietveld 408576698