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

Unified Diff: components/domain_reliability/context_unittest.cc

Issue 290473005: Domain Reliability: Include config_version in uploads (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 6 years, 7 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/context.cc ('k') | no next file » | 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 086d1de0756fa1571b24d78233828659859b78cb..d51035d0165905fb9ea280cd32964b2ffc3a603f 100644
--- a/components/domain_reliability/context_unittest.cc
+++ b/components/domain_reliability/context_unittest.cc
@@ -158,7 +158,9 @@ TEST_F(DomainReliabilityContextTest, ReportUpload) {
DomainReliabilityBeacon beacon = MakeBeacon(&time_);
context_.OnBeacon(url, beacon);
- const char* kExpectedReport = "{\"reporter\":\"test-reporter\","
+ // N.B.: Assumes max_delay is 5 minutes.
+ const char* kExpectedReport = "{\"config_version\":\"1\","
+ "\"reporter\":\"test-reporter\","
"\"resource_reports\":[{\"beacons\":[{\"http_response_code\":200,"
"\"request_age_ms\":300250,\"request_elapsed_ms\":250,\"server_ip\":"
"\"127.0.0.1\",\"status\":\"ok\"}],\"failed_requests\":0,"
« no previous file with comments | « components/domain_reliability/context.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698