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

Unified Diff: components/domain_reliability/context_unittest.cc

Issue 605473002: Domain Reliablity: Add "domain" field to reports. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 43a4a51816c69306699766a82a9c6e814a441c68..c54322b8e541a61a94bd1fcbf99057898e2c9b25 100644
--- a/components/domain_reliability/context_unittest.cc
+++ b/components/domain_reliability/context_unittest.cc
@@ -25,6 +25,7 @@ typedef std::vector<DomainReliabilityBeacon> BeaconVector;
DomainReliabilityBeacon MakeBeacon(MockableTime* time) {
DomainReliabilityBeacon beacon;
+ beacon.domain = "localhost";
beacon.status = "ok";
beacon.chrome_error = net::OK;
beacon.server_ip = "127.0.0.1";
@@ -165,7 +166,8 @@ TEST_F(DomainReliabilityContextTest, ReportUpload) {
// N.B.: Assumes max_delay is 5 minutes.
const char* kExpectedReport = "{"
"\"config_version\":\"1\","
- "\"entries\":[{\"http_response_code\":200,\"protocol\":\"HTTP\","
+ "\"entries\":[{\"domain\":\"localhost\","
+ "\"http_response_code\":200,\"protocol\":\"HTTP\","
"\"request_age_ms\":300250,\"request_elapsed_ms\":250,"
"\"resource\":\"always_report\",\"server_ip\":\"127.0.0.1\","
"\"status\":\"ok\"}],"
« 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