| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/engine/model_safe_worker.h" | 11 #include "chrome/browser/sync/engine/model_safe_worker.h" |
| 12 #include "chrome/browser/sync/engine/syncapi.h" | |
| 13 #include "chrome/browser/sync/syncable/model_type.h" | 12 #include "chrome/browser/sync/syncable/model_type.h" |
| 14 #include "chrome/test/base/test_url_request_context_getter.h" | |
| 15 #include "chrome/test/base/testing_browser_process_test.h" | 13 #include "chrome/test/base/testing_browser_process_test.h" |
| 16 #include "chrome/test/base/testing_profile.h" | 14 #include "chrome/test/base/testing_profile.h" |
| 15 #include "chrome/test/base/test_url_request_context_getter.h" |
| 17 #include "content/browser/browser_thread.h" | 16 #include "content/browser/browser_thread.h" |
| 18 #include "content/common/url_fetcher.h" | 17 #include "content/common/url_fetcher.h" |
| 19 #include "content/test/test_url_fetcher_factory.h" | 18 #include "content/test/test_url_fetcher_factory.h" |
| 20 #include "googleurl/src/gurl.h" | 19 #include "googleurl/src/gurl.h" |
| 21 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
| 22 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
| 23 | 22 |
| 24 // TODO(akalin): Remove this once we fix the TODO below. | 23 // TODO(akalin): Remove this once we fix the TODO below. |
| 25 #include "chrome/browser/prefs/pref_service.h" | 24 #include "chrome/browser/prefs/pref_service.h" |
| 26 #include "chrome/common/pref_names.h" | 25 #include "chrome/common/pref_names.h" |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 &routing_info, sync_api::CONFIGURE_REASON_RECONFIGURATION, | 196 &routing_info, sync_api::CONFIGURE_REASON_RECONFIGURATION, |
| 198 &state); | 197 &state); |
| 199 | 198 |
| 200 EXPECT_TRUE(routing_info.empty()); | 199 EXPECT_TRUE(routing_info.empty()); |
| 201 } | 200 } |
| 202 } | 201 } |
| 203 | 202 |
| 204 // TODO(akalin): Write more SyncBackendHost unit tests. | 203 // TODO(akalin): Write more SyncBackendHost unit tests. |
| 205 | 204 |
| 206 } // namespace browser_sync | 205 } // namespace browser_sync |
| OLD | NEW |