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

Side by Side Diff: components/invalidation/impl/ticl_profile_settings_provider_unittest.cc

Issue 2596283002: Include-what-you-use for ThreadTaskRunnerHandle. (Closed)
Patch Set: rebase Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/invalidation/impl/ticl_profile_settings_provider.h" 5 #include "components/invalidation/impl/ticl_profile_settings_provider.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/threading/thread_task_runner_handle.h"
11 #include "components/gcm_driver/fake_gcm_driver.h" 12 #include "components/gcm_driver/fake_gcm_driver.h"
12 #include "components/gcm_driver/gcm_channel_status_syncer.h" 13 #include "components/gcm_driver/gcm_channel_status_syncer.h"
13 #include "components/invalidation/impl/fake_invalidation_state_tracker.h" 14 #include "components/invalidation/impl/fake_invalidation_state_tracker.h"
14 #include "components/invalidation/impl/invalidation_prefs.h" 15 #include "components/invalidation/impl/invalidation_prefs.h"
15 #include "components/invalidation/impl/invalidation_state_tracker.h" 16 #include "components/invalidation/impl/invalidation_state_tracker.h"
16 #include "components/invalidation/impl/profile_invalidation_provider.h" 17 #include "components/invalidation/impl/profile_invalidation_provider.h"
17 #include "components/invalidation/impl/ticl_invalidation_service.h" 18 #include "components/invalidation/impl/ticl_invalidation_service.h"
18 #include "components/invalidation/impl/ticl_settings_provider.h" 19 #include "components/invalidation/impl/ticl_settings_provider.h"
19 #include "components/prefs/pref_service.h" 20 #include "components/prefs/pref_service.h"
20 #include "components/sync_preferences/testing_pref_service_syncable.h" 21 #include "components/sync_preferences/testing_pref_service_syncable.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 pref_service_.SetBoolean(prefs::kInvalidationServiceUseGCMChannel, true); 105 pref_service_.SetBoolean(prefs::kInvalidationServiceUseGCMChannel, true);
105 EXPECT_EQ(TiclInvalidationService::GCM_NETWORK_CHANNEL, GetNetworkChannel()); 106 EXPECT_EQ(TiclInvalidationService::GCM_NETWORK_CHANNEL, GetNetworkChannel());
106 107
107 // If invalidation channel setting is set to false, fall back to push channel. 108 // If invalidation channel setting is set to false, fall back to push channel.
108 pref_service_.SetBoolean(gcm::prefs::kGCMChannelStatus, true); 109 pref_service_.SetBoolean(gcm::prefs::kGCMChannelStatus, true);
109 pref_service_.SetBoolean(prefs::kInvalidationServiceUseGCMChannel, false); 110 pref_service_.SetBoolean(prefs::kInvalidationServiceUseGCMChannel, false);
110 EXPECT_EQ(TiclInvalidationService::PUSH_CLIENT_CHANNEL, GetNetworkChannel()); 111 EXPECT_EQ(TiclInvalidationService::PUSH_CLIENT_CHANNEL, GetNetworkChannel());
111 } 112 }
112 113
113 } // namespace invalidation 114 } // namespace invalidation
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698