OLD | NEW |
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/ticl_invalidation_service.h" | 5 #include "components/invalidation/ticl_invalidation_service.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "components/gcm_driver/fake_gcm_driver.h" | 10 #include "components/gcm_driver/fake_gcm_driver.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 namespace invalidation { | 23 namespace invalidation { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 class FakeTiclSettingsProvider : public TiclSettingsProvider { | 27 class FakeTiclSettingsProvider : public TiclSettingsProvider { |
28 public: | 28 public: |
29 FakeTiclSettingsProvider(); | 29 FakeTiclSettingsProvider(); |
30 virtual ~FakeTiclSettingsProvider(); | 30 virtual ~FakeTiclSettingsProvider(); |
31 | 31 |
32 // TiclSettingsProvider: | 32 // TiclSettingsProvider: |
33 virtual bool UseGCMChannel() const OVERRIDE; | 33 virtual bool UseGCMChannel() const override; |
34 | 34 |
35 private: | 35 private: |
36 DISALLOW_COPY_AND_ASSIGN(FakeTiclSettingsProvider); | 36 DISALLOW_COPY_AND_ASSIGN(FakeTiclSettingsProvider); |
37 }; | 37 }; |
38 | 38 |
39 FakeTiclSettingsProvider::FakeTiclSettingsProvider() { | 39 FakeTiclSettingsProvider::FakeTiclSettingsProvider() { |
40 } | 40 } |
41 | 41 |
42 FakeTiclSettingsProvider::~FakeTiclSettingsProvider() { | 42 FakeTiclSettingsProvider::~FakeTiclSettingsProvider() { |
43 } | 43 } |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 141 |
142 delegate->InitializeInvalidationService(); | 142 delegate->InitializeInvalidationService(); |
143 | 143 |
144 invalidator->RequestDetailedStatus( | 144 invalidator->RequestDetailedStatus( |
145 base::Bind(&internal::FakeCallbackContainer::FakeCallback, | 145 base::Bind(&internal::FakeCallbackContainer::FakeCallback, |
146 fake_container.weak_ptr_factory_.GetWeakPtr())); | 146 fake_container.weak_ptr_factory_.GetWeakPtr())); |
147 EXPECT_TRUE(fake_container.called_); | 147 EXPECT_TRUE(fake_container.called_); |
148 } | 148 } |
149 | 149 |
150 } // namespace invalidation | 150 } // namespace invalidation |
OLD | NEW |