| 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/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 11 #include "chrome/browser/sync/invalidations/invalidator_storage.h" | 11 #include "chrome/browser/sync/invalidations/invalidator_storage.h" |
| 12 #include "chrome/browser/sync/sync_prefs.h" | 12 #include "chrome/browser/sync/sync_prefs.h" |
| 13 #include "chrome/test/base/testing_profile.h" | 13 #include "chrome/test/base/testing_profile.h" |
| 14 #include "content/public/test/test_browser_thread.h" | 14 #include "content/public/test/test_browser_thread.h" |
| 15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
| 16 #include "net/url_request/test_url_fetcher_factory.h" | 16 #include "net/url_request/test_url_fetcher_factory.h" |
| 17 #include "sync/internal_api/public/base/model_type.h" |
| 17 #include "sync/internal_api/public/engine/model_safe_worker.h" | 18 #include "sync/internal_api/public/engine/model_safe_worker.h" |
| 18 #include "sync/internal_api/public/syncable/model_type.h" | |
| 19 #include "sync/internal_api/public/util/experiments.h" | 19 #include "sync/internal_api/public/util/experiments.h" |
| 20 #include "sync/protocol/encryption.pb.h" | 20 #include "sync/protocol/encryption.pb.h" |
| 21 #include "sync/protocol/sync_protocol_error.h" | 21 #include "sync/protocol/sync_protocol_error.h" |
| 22 #include "sync/util/test_unrecoverable_error_handler.h" | 22 #include "sync/util/test_unrecoverable_error_handler.h" |
| 23 #include "testing/gmock/include/gmock/gmock.h" | 23 #include "testing/gmock/include/gmock/gmock.h" |
| 24 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
| 25 | 25 |
| 26 using content::BrowserThread; | 26 using content::BrowserThread; |
| 27 | 27 |
| 28 namespace browser_sync { | 28 namespace browser_sync { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 true, | 113 true, |
| 114 &handler, | 114 &handler, |
| 115 NULL); | 115 NULL); |
| 116 backend.StopSyncingForShutdown(); | 116 backend.StopSyncingForShutdown(); |
| 117 backend.Shutdown(false); | 117 backend.Shutdown(false); |
| 118 } | 118 } |
| 119 | 119 |
| 120 // TODO(akalin): Write more SyncBackendHost unit tests. | 120 // TODO(akalin): Write more SyncBackendHost unit tests. |
| 121 | 121 |
| 122 } // namespace browser_sync | 122 } // namespace browser_sync |
| OLD | NEW |