| 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/registration_manager.h" | 5 #include "components/invalidation/impl/registration_manager.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <cstddef> | 9 #include <cstddef> |
| 10 #include <deque> | 10 #include <deque> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
| 15 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
| 16 #include "components/invalidation/invalidation_util.h" | 16 #include "components/invalidation/public/invalidation_util.h" |
| 17 #include "google/cacheinvalidation/include/invalidation-client.h" | 17 #include "google/cacheinvalidation/include/invalidation-client.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 19 | 19 |
| 20 namespace syncer { | 20 namespace syncer { |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 // Fake registration manager that lets you override jitter. | 23 // Fake registration manager that lets you override jitter. |
| 24 class FakeRegistrationManager : public RegistrationManager { | 24 class FakeRegistrationManager : public RegistrationManager { |
| 25 public: | 25 public: |
| 26 explicit FakeRegistrationManager( | 26 explicit FakeRegistrationManager( |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 fake_registration_manager_.GetPendingRegistrationsForTest()); | 420 fake_registration_manager_.GetPendingRegistrationsForTest()); |
| 421 | 421 |
| 422 fake_registration_manager_.MarkAllRegistrationsLost(); | 422 fake_registration_manager_.MarkAllRegistrationsLost(); |
| 423 ExpectPendingRegistrations( | 423 ExpectPendingRegistrations( |
| 424 enabled_ids, 0.0, | 424 enabled_ids, 0.0, |
| 425 fake_registration_manager_.GetPendingRegistrationsForTest()); | 425 fake_registration_manager_.GetPendingRegistrationsForTest()); |
| 426 } | 426 } |
| 427 | 427 |
| 428 } // namespace | 428 } // namespace |
| 429 } // namespace syncer | 429 } // namespace syncer |
| OLD | NEW |