OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/sync_driver/data_type_manager_impl.h" | 5 #include "components/sync_driver/data_type_manager_impl.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "components/sync/base/model_type.h" |
| 10 #include "components/sync/core/activation_context.h" |
| 11 #include "components/sync/core/configure_reason.h" |
9 #include "components/sync_driver/backend_data_type_configurer.h" | 12 #include "components/sync_driver/backend_data_type_configurer.h" |
10 #include "components/sync_driver/data_type_encryption_handler.h" | 13 #include "components/sync_driver/data_type_encryption_handler.h" |
11 #include "components/sync_driver/data_type_manager_observer.h" | 14 #include "components/sync_driver/data_type_manager_observer.h" |
12 #include "components/sync_driver/data_type_status_table.h" | 15 #include "components/sync_driver/data_type_status_table.h" |
13 #include "components/sync_driver/fake_data_type_controller.h" | 16 #include "components/sync_driver/fake_data_type_controller.h" |
14 #include "sync/internal_api/public/activation_context.h" | |
15 #include "sync/internal_api/public/base/model_type.h" | |
16 #include "sync/internal_api/public/configure_reason.h" | |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 | 18 |
19 namespace sync_driver { | 19 namespace sync_driver { |
20 | 20 |
21 using syncer::SyncError; | 21 using syncer::SyncError; |
22 using syncer::ModelType; | 22 using syncer::ModelType; |
23 using syncer::ModelTypeSet; | 23 using syncer::ModelTypeSet; |
24 using syncer::ModelTypeToString; | 24 using syncer::ModelTypeToString; |
25 using syncer::BOOKMARKS; | 25 using syncer::BOOKMARKS; |
26 using syncer::APPS; | 26 using syncer::APPS; |
(...skipping 1678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1705 FinishDownload(*dtm_, ModelTypeSet(), ModelTypeSet()); | 1705 FinishDownload(*dtm_, ModelTypeSet(), ModelTypeSet()); |
1706 FinishDownload(*dtm_, ModelTypeSet(BOOKMARKS), ModelTypeSet()); | 1706 FinishDownload(*dtm_, ModelTypeSet(BOOKMARKS), ModelTypeSet()); |
1707 EXPECT_EQ(DataTypeManager::CONFIGURING, dtm_->state()); | 1707 EXPECT_EQ(DataTypeManager::CONFIGURING, dtm_->state()); |
1708 | 1708 |
1709 GetController(BOOKMARKS)->FinishStart(DataTypeController::OK); | 1709 GetController(BOOKMARKS)->FinishStart(DataTypeController::OK); |
1710 EXPECT_EQ(DataTypeManager::CONFIGURED, dtm_->state()); | 1710 EXPECT_EQ(DataTypeManager::CONFIGURED, dtm_->state()); |
1711 EXPECT_EQ(1U, configurer_.activated_types().Size()); | 1711 EXPECT_EQ(1U, configurer_.activated_types().Size()); |
1712 } | 1712 } |
1713 | 1713 |
1714 } // namespace sync_driver | 1714 } // namespace sync_driver |
OLD | NEW |