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

Unified Diff: components/domain_reliability/context_unittest.cc

Issue 1497803004: Domain Reliability: Add sample_rate field to Beacon (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/domain_reliability/context_unittest.cc
diff --git a/components/domain_reliability/context_unittest.cc b/components/domain_reliability/context_unittest.cc
index ccbccacce9eaa45dceddb09415fa1e41e65fbb30..df4dc5fe9ad80e427815b463aa857cf631984b51 100644
--- a/components/domain_reliability/context_unittest.cc
+++ b/components/domain_reliability/context_unittest.cc
@@ -214,7 +214,7 @@ TEST_F(DomainReliabilityContextTest, ReportUpload) {
"\"network_changed\":false,\"protocol\":\"HTTP\","
"\"request_age_ms\":300250,\"request_elapsed_ms\":250,"
"\"server_ip\":\"127.0.0.1\",\"status\":\"tcp.connection_reset\","
- "\"url\":\"https://localhost/\",\"was_proxied\":false}],"
+ "\"url\":\"https://localhost/\",\"was_proxied\":false,\"weight\":1}],"
jkarlin 2015/12/07 14:57:27 A weight of 1 isn't testing that division is happe
Deprecated (see juliatuttle) 2015/12/07 20:17:57 Acknowledged.
"\"reporter\":\"test-reporter\"}";
time_.Advance(max_delay());
@@ -244,7 +244,7 @@ TEST_F(DomainReliabilityContextTest, Upload_NetworkChanged) {
"\"network_changed\":true,\"protocol\":\"HTTP\","
"\"request_age_ms\":300250,\"request_elapsed_ms\":250,"
"\"server_ip\":\"127.0.0.1\",\"status\":\"tcp.connection_reset\","
- "\"url\":\"https://localhost/\",\"was_proxied\":false}],"
+ "\"url\":\"https://localhost/\",\"was_proxied\":false,\"weight\":1}],"
"\"reporter\":\"test-reporter\"}";
// Simulate a network change after the request but before the upload.
« components/domain_reliability/context.cc ('K') | « components/domain_reliability/context.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698