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

Unified Diff: net/http/http_server_properties_manager_unittest.cc

Issue 1139843002: HttpServerProperties - Track UpdatePrefs callers. In offical builds, on (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed comments for patch set 2 Created 5 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 | « net/http/http_server_properties_manager.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_server_properties_manager_unittest.cc
diff --git a/net/http/http_server_properties_manager_unittest.cc b/net/http/http_server_properties_manager_unittest.cc
index 55dc7b8cc04a41559b4628ed5d6c28b15ca611c0..7ab6ef064361b00f03040102ad08df0fe2edd666 100644
--- a/net/http/http_server_properties_manager_unittest.cc
+++ b/net/http/http_server_properties_manager_unittest.cc
@@ -67,6 +67,12 @@ class TestingHttpServerPropertiesManager : public HttpServerPropertiesManager {
HttpServerPropertiesManager::UpdatePrefsFromCacheOnNetworkThread(callback);
}
+ void ScheduleUpdatePrefsOnNetworkThread() {
+ // Picked a random Location as caller.
+ HttpServerPropertiesManager::ScheduleUpdatePrefsOnNetworkThread(
+ DETECTED_CORRUPTED_PREFS);
+ }
+
MOCK_METHOD0(UpdateCacheFromPrefsOnPrefThread, void());
MOCK_METHOD1(UpdatePrefsFromCacheOnNetworkThread, void(const base::Closure&));
MOCK_METHOD6(UpdateCacheFromPrefsOnNetworkThread,
« no previous file with comments | « net/http/http_server_properties_manager.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698