OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/sync/glue/android_invalidator_bridge.h" | 5 #include "chrome/browser/sync/glue/android_invalidator_bridge.h" |
6 | 6 |
7 #include <cstddef> | 7 #include <cstddef> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/message_loop.h" | 15 #include "base/message_loop.h" |
16 #include "base/message_loop_proxy.h" | 16 #include "base/message_loop_proxy.h" |
17 #include "base/run_loop.h" | 17 #include "base/run_loop.h" |
18 #include "base/task/sequenced_task_runner.h" | 18 #include "base/sequenced_task_runner.h" |
19 #include "base/threading/thread.h" | 19 #include "base/threading/thread.h" |
20 #include "chrome/common/chrome_notification_types.h" | 20 #include "chrome/common/chrome_notification_types.h" |
21 #include "chrome/test/base/profile_mock.h" | 21 #include "chrome/test/base/profile_mock.h" |
22 #include "content/public/browser/notification_details.h" | 22 #include "content/public/browser/notification_details.h" |
23 #include "content/public/browser/notification_service.h" | 23 #include "content/public/browser/notification_service.h" |
24 #include "content/public/test/test_browser_thread.h" | 24 #include "content/public/test/test_browser_thread.h" |
25 #include "sync/internal_api/public/base/model_type.h" | 25 #include "sync/internal_api/public/base/model_type.h" |
26 #include "sync/internal_api/public/base/model_type_invalidation_map.h" | 26 #include "sync/internal_api/public/base/model_type_invalidation_map.h" |
27 #include "sync/notifier/fake_invalidation_handler.h" | 27 #include "sync/notifier/fake_invalidation_handler.h" |
28 #include "sync/notifier/object_id_invalidation_map_test_util.h" | 28 #include "sync/notifier/object_id_invalidation_map_test_util.h" |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 syncer::ModelTypeSetToInvalidationMap(enabled_types, std::string()); | 183 syncer::ModelTypeSetToInvalidationMap(enabled_types, std::string()); |
184 CreateObserver(); | 184 CreateObserver(); |
185 UpdateEnabledTypes(enabled_types); | 185 UpdateEnabledTypes(enabled_types); |
186 TriggerRefreshNotification(chrome::NOTIFICATION_SYNC_REFRESH_REMOTE, | 186 TriggerRefreshNotification(chrome::NOTIFICATION_SYNC_REFRESH_REMOTE, |
187 syncer::ModelTypeInvalidationMap()); | 187 syncer::ModelTypeInvalidationMap()); |
188 VerifyAndDestroyObserver(enabled_types_invalidation_map); | 188 VerifyAndDestroyObserver(enabled_types_invalidation_map); |
189 } | 189 } |
190 | 190 |
191 } // namespace | 191 } // namespace |
192 } // namespace browser_sync | 192 } // namespace browser_sync |
OLD | NEW |