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

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

Issue 1074293003: Use int64 instead of int32 for response sizes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reuploading to try to fix corrupt issue Created 5 years, 8 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
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection_unittest.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection_unittest.cc
index c1200bcbe0a6f4a4e4092739bf9626539051e38e..8023c317495764d30e844252528482b3c8f116dd 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection_unittest.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection_unittest.cc
@@ -466,8 +466,8 @@ TEST_F(DataReductionProxyTamperDetectionTest, ContentLength) {
struct {
std::string label;
std::string received_fingerprint;
- int actual_content_length;
- int expected_original_content_length;
+ int64 actual_content_length;
+ int64 expected_original_content_length;
bool expected_tampered_with;
} test[] = {
{
@@ -494,7 +494,7 @@ TEST_F(DataReductionProxyTamperDetectionTest, ContentLength) {
DataReductionProxyTamperDetection tamper_detection(headers.get(), true, 0);
- int original_content_length;
+ int64 original_content_length;
bool tampered = tamper_detection.ValidateContentLength(
test[i].received_fingerprint,
test[i].actual_content_length,
@@ -599,7 +599,7 @@ TEST_F(DataReductionProxyTamperDetectionTest, DetectAndReport) {
struct {
std::string label;
std::string raw_header;
- int content_length;
+ int64 content_length;
bool expected_tampered_with;
} test[] = {
{

Powered by Google App Engine
This is Rietveld 408576698