| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_impl.h" | 5 #include "chrome/browser/sync/glue/sync_backend_host_impl.h" |
| 6 | 6 |
| 7 #include <cstddef> | 7 #include <cstddef> |
| 8 | 8 |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "chrome/test/base/testing_profile.h" | 21 #include "chrome/test/base/testing_profile.h" |
| 22 #include "chrome/test/base/testing_profile_manager.h" | 22 #include "chrome/test/base/testing_profile_manager.h" |
| 23 #include "components/invalidation/invalidator_storage.h" | 23 #include "components/invalidation/invalidator_storage.h" |
| 24 #include "components/sync_driver/sync_frontend.h" | 24 #include "components/sync_driver/sync_frontend.h" |
| 25 #include "components/sync_driver/sync_prefs.h" | 25 #include "components/sync_driver/sync_prefs.h" |
| 26 #include "content/public/browser/notification_service.h" | 26 #include "content/public/browser/notification_service.h" |
| 27 #include "content/public/test/test_browser_thread_bundle.h" | 27 #include "content/public/test/test_browser_thread_bundle.h" |
| 28 #include "content/public/test/test_utils.h" | 28 #include "content/public/test/test_utils.h" |
| 29 #include "google/cacheinvalidation/include/types.h" | 29 #include "google/cacheinvalidation/include/types.h" |
| 30 #include "net/url_request/test_url_fetcher_factory.h" | 30 #include "net/url_request/test_url_fetcher_factory.h" |
| 31 #include "sync/internal_api/public/base/invalidator_state.h" | |
| 32 #include "sync/internal_api/public/base/model_type.h" | 31 #include "sync/internal_api/public/base/model_type.h" |
| 33 #include "sync/internal_api/public/engine/model_safe_worker.h" | 32 #include "sync/internal_api/public/engine/model_safe_worker.h" |
| 34 #include "sync/internal_api/public/http_bridge_network_resources.h" | 33 #include "sync/internal_api/public/http_bridge_network_resources.h" |
| 35 #include "sync/internal_api/public/network_resources.h" | 34 #include "sync/internal_api/public/network_resources.h" |
| 36 #include "sync/internal_api/public/sessions/commit_counters.h" | 35 #include "sync/internal_api/public/sessions/commit_counters.h" |
| 37 #include "sync/internal_api/public/sessions/status_counters.h" | 36 #include "sync/internal_api/public/sessions/status_counters.h" |
| 38 #include "sync/internal_api/public/sessions/update_counters.h" | 37 #include "sync/internal_api/public/sessions/update_counters.h" |
| 39 #include "sync/internal_api/public/sync_manager_factory.h" | 38 #include "sync/internal_api/public/sync_manager_factory.h" |
| 40 #include "sync/internal_api/public/test/fake_sync_manager.h" | 39 #include "sync/internal_api/public/test/fake_sync_manager.h" |
| 41 #include "sync/internal_api/public/util/experiments.h" | 40 #include "sync/internal_api/public/util/experiments.h" |
| 41 #include "sync/notifier/invalidator_state.h" |
| 42 #include "sync/protocol/encryption.pb.h" | 42 #include "sync/protocol/encryption.pb.h" |
| 43 #include "sync/protocol/sync_protocol_error.h" | 43 #include "sync/protocol/sync_protocol_error.h" |
| 44 #include "sync/util/test_unrecoverable_error_handler.h" | 44 #include "sync/util/test_unrecoverable_error_handler.h" |
| 45 #include "testing/gmock/include/gmock/gmock.h" | 45 #include "testing/gmock/include/gmock/gmock.h" |
| 46 #include "testing/gtest/include/gtest/gtest.h" | 46 #include "testing/gtest/include/gtest/gtest.h" |
| 47 #include "url/gurl.h" | 47 #include "url/gurl.h" |
| 48 | 48 |
| 49 using content::BrowserThread; | 49 using content::BrowserThread; |
| 50 using syncer::FakeSyncManager; | 50 using syncer::FakeSyncManager; |
| 51 using syncer::SyncManager; | 51 using syncer::SyncManager; |
| (...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 ASSERT_NE(-1, base::WriteFile(sync_file, nonsense, strlen(nonsense))); | 724 ASSERT_NE(-1, base::WriteFile(sync_file, nonsense, strlen(nonsense))); |
| 725 | 725 |
| 726 InitializeBackend(true); | 726 InitializeBackend(true); |
| 727 | 727 |
| 728 EXPECT_FALSE(base::PathExists(sync_file)); | 728 EXPECT_FALSE(base::PathExists(sync_file)); |
| 729 } | 729 } |
| 730 | 730 |
| 731 } // namespace | 731 } // namespace |
| 732 | 732 |
| 733 } // namespace browser_sync | 733 } // namespace browser_sync |
| OLD | NEW |