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

Unified Diff: components/domain_reliability/context_unittest.cc

Issue 1088933007: Domain Reliability: Add was_proxied field to beacons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « components/domain_reliability/beacon.cc ('k') | components/domain_reliability/monitor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/domain_reliability/context_unittest.cc
diff --git a/components/domain_reliability/context_unittest.cc b/components/domain_reliability/context_unittest.cc
index 8633c48ff6f1aa8d99c2dde065162776d1d2c00a..80250211d97da05b09d21c8eff4c564de500aaa4 100644
--- a/components/domain_reliability/context_unittest.cc
+++ b/components/domain_reliability/context_unittest.cc
@@ -30,6 +30,7 @@ DomainReliabilityBeacon MakeBeacon(MockableTime* time) {
beacon.status = "ok";
beacon.chrome_error = net::OK;
beacon.server_ip = "127.0.0.1";
+ beacon.was_proxied = false;
beacon.protocol = "HTTP";
beacon.http_response_code = 200;
beacon.elapsed = base::TimeDelta::FromMilliseconds(250);
@@ -179,7 +180,8 @@ TEST_F(DomainReliabilityContextTest, ReportUpload) {
"\"http_response_code\":200,\"network_changed\":false,"
"\"protocol\":\"HTTP\",\"request_age_ms\":300250,"
"\"request_elapsed_ms\":250,\"resource\":\"always_report\","
- "\"server_ip\":\"127.0.0.1\",\"status\":\"ok\"}],"
+ "\"server_ip\":\"127.0.0.1\",\"status\":\"ok\","
+ "\"was_proxied\":false}],"
"\"reporter\":\"test-reporter\","
"\"resources\":[{\"failed_requests\":0,\"name\":\"always_report\","
"\"successful_requests\":1}]}";
@@ -216,7 +218,8 @@ TEST_F(DomainReliabilityContextTest, ReportUpload_NetworkChanged) {
"\"http_response_code\":200,\"network_changed\":true,"
"\"protocol\":\"HTTP\",\"request_age_ms\":300250,"
"\"request_elapsed_ms\":250,\"resource\":\"always_report\","
- "\"server_ip\":\"127.0.0.1\",\"status\":\"ok\"}],"
+ "\"server_ip\":\"127.0.0.1\",\"status\":\"ok\","
+ "\"was_proxied\":false}],"
"\"reporter\":\"test-reporter\","
"\"resources\":[{\"failed_requests\":0,\"name\":\"always_report\","
"\"successful_requests\":1}]}";
« no previous file with comments | « components/domain_reliability/beacon.cc ('k') | components/domain_reliability/monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698