| 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/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.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" | 12 #include "chrome/browser/sync/engine/syncapi.h" |
| 13 #include "chrome/browser/sync/glue/data_type_controller.h" | 13 #include "chrome/browser/sync/glue/data_type_controller.h" |
| 14 #include "chrome/browser/sync/syncable/model_type.h" | 14 #include "chrome/browser/sync/syncable/model_type.h" |
| 15 #include "chrome/test/testing_profile.h" | 15 #include "chrome/test/testing_profile.h" |
| 16 #include "chrome/common/net/url_fetcher.h" | |
| 17 #include "chrome/common/net/test_url_fetcher_factory.h" | |
| 18 #include "chrome/test/test_url_request_context_getter.h" | 16 #include "chrome/test/test_url_request_context_getter.h" |
| 19 #include "content/browser/browser_thread.h" | 17 #include "content/browser/browser_thread.h" |
| 18 #include "content/common/url_fetcher.h" |
| 19 #include "content/common/test_url_fetcher_factory.h" |
| 20 #include "googleurl/src/gurl.h" | 20 #include "googleurl/src/gurl.h" |
| 21 #include "testing/gmock/include/gmock/gmock.h" | 21 #include "testing/gmock/include/gmock/gmock.h" |
| 22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
| 23 | 23 |
| 24 // TODO(akalin): Remove this once we fix the TODO below. | 24 // TODO(akalin): Remove this once we fix the TODO below. |
| 25 #include "chrome/browser/prefs/pref_service.h" | 25 #include "chrome/browser/prefs/pref_service.h" |
| 26 #include "chrome/common/pref_names.h" | 26 #include "chrome/common/pref_names.h" |
| 27 | 27 |
| 28 namespace browser_sync { | 28 namespace browser_sync { |
| 29 | 29 |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 EXPECT_FALSE(state->ready_task.get()); | 209 EXPECT_FALSE(state->ready_task.get()); |
| 210 EXPECT_EQ(types, state->initial_types); | 210 EXPECT_EQ(types, state->initial_types); |
| 211 EXPECT_TRUE(state->deleted_type); | 211 EXPECT_TRUE(state->deleted_type); |
| 212 EXPECT_TRUE(state->added_types.none()); | 212 EXPECT_TRUE(state->added_types.none()); |
| 213 } | 213 } |
| 214 } | 214 } |
| 215 | 215 |
| 216 // TODO(akalin): Write more SyncBackendHost unit tests. | 216 // TODO(akalin): Write more SyncBackendHost unit tests. |
| 217 | 217 |
| 218 } // namespace browser_sync | 218 } // namespace browser_sync |
| OLD | NEW |