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_network_delegate_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_network_delegate_unittest.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc
index 3232d5512a44852c0af6116d84afff81f5fe75ee..e07efe781c21bf9b61f58638fd0883f789862f7a 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc
@@ -4,16 +4,19 @@
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h"
+#include <stddef.h>
#include <stdint.h>
#include <string>
#include "base/command_line.h"
+#include "base/macros.h"
#include "base/metrics/field_trial.h"
#include "base/strings/string_number_conversions.h"
#include "base/test/histogram_tester.h"
#include "base/test/mock_entropy_provider.h"
#include "base/time/time.h"
+#include "build/build_config.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.h"
@@ -162,11 +165,11 @@ class DataReductionProxyNetworkDelegateTest : public testing::Test {
test_context_->settings()->WasLoFiModeActiveOnMainFrame());
}
- int64 total_received_bytes() {
+ int64_t total_received_bytes() {
return data_reduction_proxy_network_delegate_->total_received_bytes_;
}
- int64 total_original_received_bytes() {
+ int64_t total_original_received_bytes() {
return data_reduction_proxy_network_delegate_
->total_original_received_bytes_;
}
@@ -412,8 +415,8 @@ TEST_F(DataReductionProxyNetworkDelegateTest, NetHistograms) {
"Net.HttpContentLengthCacheable4Hours";
const std::string kCacheable24HoursHistogramName =
"Net.HttpContentLengthCacheable24Hours";
- const int64 kResponseContentLength = 100;
- const int64 kOriginalContentLength = 200;
+ const int64_t kResponseContentLength = 100;
+ const int64_t kOriginalContentLength = 200;
base::HistogramTester histogram_tester;
@@ -648,8 +651,8 @@ TEST_F(DataReductionProxyNetworkDelegateTest, NullRequest) {
}
TEST_F(DataReductionProxyNetworkDelegateTest, OnCompletedInternal) {
- const int64 kResponseContentLength = 140;
- const int64 kOriginalContentLength = 200;
+ const int64_t kResponseContentLength = 140;
+ const int64_t kOriginalContentLength = 200;
set_network_delegate(data_reduction_proxy_network_delegate_.get());

Powered by Google App Engine
This is Rietveld 408576698