| 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/sync_backend_host.h" | 5 #include "chrome/browser/sync/glue/sync_backend_host.h" |
| 6 | 6 |
| 7 #include <cstddef> | 7 #include <cstddef> |
| 8 | 8 |
| 9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
| 12 #include "base/synchronization/waitable_event.h" | 12 #include "base/synchronization/waitable_event.h" |
| 13 #include "base/test/test_timeouts.h" | 13 #include "base/test/test_timeouts.h" |
| 14 #include "chrome/browser/prefs/pref_registry_syncable.h" | |
| 15 #include "chrome/browser/prefs/pref_service_syncable.h" | 14 #include "chrome/browser/prefs/pref_service_syncable.h" |
| 16 #include "chrome/browser/sync/glue/device_info.h" | 15 #include "chrome/browser/sync/glue/device_info.h" |
| 17 #include "chrome/browser/sync/glue/synced_device_tracker.h" | 16 #include "chrome/browser/sync/glue/synced_device_tracker.h" |
| 18 #include "chrome/browser/sync/invalidations/invalidator_storage.h" | 17 #include "chrome/browser/sync/invalidations/invalidator_storage.h" |
| 19 #include "chrome/browser/sync/sync_prefs.h" | 18 #include "chrome/browser/sync/sync_prefs.h" |
| 20 #include "chrome/common/chrome_notification_types.h" | 19 #include "chrome/common/chrome_notification_types.h" |
| 21 #include "chrome/test/base/testing_profile.h" | 20 #include "chrome/test/base/testing_profile.h" |
| 21 #include "components/user_prefs/pref_registry_syncable.h" |
| 22 #include "content/public/browser/notification_service.h" | 22 #include "content/public/browser/notification_service.h" |
| 23 #include "content/public/test/test_browser_thread.h" | 23 #include "content/public/test/test_browser_thread.h" |
| 24 #include "google/cacheinvalidation/include/types.h" | 24 #include "google/cacheinvalidation/include/types.h" |
| 25 #include "googleurl/src/gurl.h" | 25 #include "googleurl/src/gurl.h" |
| 26 #include "net/url_request/test_url_fetcher_factory.h" | 26 #include "net/url_request/test_url_fetcher_factory.h" |
| 27 #include "sync/internal_api/public/base/model_type.h" | 27 #include "sync/internal_api/public/base/model_type.h" |
| 28 #include "sync/internal_api/public/engine/model_safe_worker.h" | 28 #include "sync/internal_api/public/engine/model_safe_worker.h" |
| 29 #include "sync/internal_api/public/sync_manager_factory.h" | 29 #include "sync/internal_api/public/sync_manager_factory.h" |
| 30 #include "sync/internal_api/public/test/fake_sync_manager.h" | 30 #include "sync/internal_api/public/test/fake_sync_manager.h" |
| 31 #include "sync/internal_api/public/util/experiments.h" | 31 #include "sync/internal_api/public/util/experiments.h" |
| (...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 fake_manager_->WaitForSyncThread(); | 744 fake_manager_->WaitForSyncThread(); |
| 745 EXPECT_FALSE(types.Equals(fake_manager_->GetLastRefreshRequestTypes())); | 745 EXPECT_FALSE(types.Equals(fake_manager_->GetLastRefreshRequestTypes())); |
| 746 | 746 |
| 747 backend_->Shutdown(false); | 747 backend_->Shutdown(false); |
| 748 backend_.reset(); | 748 backend_.reset(); |
| 749 } | 749 } |
| 750 | 750 |
| 751 } // namespace | 751 } // namespace |
| 752 | 752 |
| 753 } // namespace browser_sync | 753 } // namespace browser_sync |
| OLD | NEW |