| 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 <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | |
| 10 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 11 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 12 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
| 13 #include "components/sync/base/model_type.h" | 12 #include "components/sync/base/model_type.h" |
| 14 #include "components/sync/core/activation_context.h" | 13 #include "components/sync/core/activation_context.h" |
| 15 #include "components/sync/core/configure_reason.h" | 14 #include "components/sync/core/configure_reason.h" |
| 16 #include "components/sync/driver/backend_data_type_configurer.h" | |
| 17 #include "components/sync/driver/data_type_encryption_handler.h" | 15 #include "components/sync/driver/data_type_encryption_handler.h" |
| 18 #include "components/sync/driver/data_type_manager_observer.h" | 16 #include "components/sync/driver/data_type_manager_observer.h" |
| 19 #include "components/sync/driver/data_type_status_table.h" | 17 #include "components/sync/driver/data_type_status_table.h" |
| 20 #include "components/sync/driver/fake_data_type_controller.h" | 18 #include "components/sync/driver/fake_data_type_controller.h" |
| 21 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 22 | 20 |
| 23 namespace syncer { | 21 namespace syncer { |
| 24 | 22 |
| 25 namespace { | 23 namespace { |
| 26 | 24 |
| (...skipping 1645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1672 GetController(PASSWORDS)->state()); | 1670 GetController(PASSWORDS)->state()); |
| 1673 EXPECT_EQ(0, GetController(BOOKMARKS)->register_with_backend_call_count()); | 1671 EXPECT_EQ(0, GetController(BOOKMARKS)->register_with_backend_call_count()); |
| 1674 EXPECT_EQ(0, GetController(PASSWORDS)->register_with_backend_call_count()); | 1672 EXPECT_EQ(0, GetController(PASSWORDS)->register_with_backend_call_count()); |
| 1675 | 1673 |
| 1676 dtm_->OnAllDataTypesReadyForConfigure(); | 1674 dtm_->OnAllDataTypesReadyForConfigure(); |
| 1677 EXPECT_EQ(0, GetController(BOOKMARKS)->register_with_backend_call_count()); | 1675 EXPECT_EQ(0, GetController(BOOKMARKS)->register_with_backend_call_count()); |
| 1678 EXPECT_EQ(1, GetController(PASSWORDS)->register_with_backend_call_count()); | 1676 EXPECT_EQ(1, GetController(PASSWORDS)->register_with_backend_call_count()); |
| 1679 } | 1677 } |
| 1680 | 1678 |
| 1681 } // namespace syncer | 1679 } // namespace syncer |
| OLD | NEW |