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

Unified Diff: sync/notifier/non_blocking_invalidator_unittest.cc

Issue 116533006: Control invalidations network channel from TiclInvalidationService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 12 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 | « sync/notifier/non_blocking_invalidator.cc ('k') | sync/notifier/push_client_channel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/notifier/non_blocking_invalidator_unittest.cc
diff --git a/sync/notifier/non_blocking_invalidator_unittest.cc b/sync/notifier/non_blocking_invalidator_unittest.cc
index 0c439c502c680e88172bb022c9d42029dff5be8d..3dd2dbbb2caa35367b8c5a46e9f95be1da8ffe4c 100644
--- a/sync/notifier/non_blocking_invalidator_unittest.cc
+++ b/sync/notifier/non_blocking_invalidator_unittest.cc
@@ -42,16 +42,19 @@ class NonBlockingInvalidatorTestDelegate {
io_thread_.StartWithOptions(options);
request_context_getter_ =
new net::TestURLRequestContextGetter(io_thread_.message_loop_proxy());
- notifier::NotifierOptions invalidator_options;
- invalidator_options.request_context_getter = request_context_getter_;
+ notifier::NotifierOptions notifier_options;
+ notifier_options.request_context_getter = request_context_getter_;
+ NetworkChannelCreator network_channel_creator =
+ NonBlockingInvalidator::MakePushClientChannelCreator(notifier_options);
invalidator_.reset(
new NonBlockingInvalidator(
- invalidator_options,
+ network_channel_creator,
invalidator_client_id,
UnackedInvalidationsMap(),
initial_state,
MakeWeakHandle(invalidation_state_tracker),
- "fake_client_info"));
+ "fake_client_info",
+ request_context_getter_));
}
Invalidator* GetInvalidator() {
« no previous file with comments | « sync/notifier/non_blocking_invalidator.cc ('k') | sync/notifier/push_client_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698