OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "components/sync/engine/sync_backend_registrar.h" | 5 #include "components/sync/engine/sync_backend_registrar.h" |
6 | 6 |
7 #include "base/location.h" | 7 #include "base/location.h" |
8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
| 9 #include "base/message_loop/message_loop.h" |
9 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
10 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
11 #include "base/threading/thread.h" | 12 #include "base/threading/thread.h" |
12 #include "components/sync/engine/browser_thread_model_worker.h" | 13 #include "components/sync/engine/browser_thread_model_worker.h" |
13 #include "components/sync/engine/passive_model_worker.h" | 14 #include "components/sync/engine/passive_model_worker.h" |
14 #include "components/sync/model/change_processor_mock.h" | 15 #include "components/sync/model/change_processor_mock.h" |
15 #include "components/sync/syncable/test_user_share.h" | 16 #include "components/sync/syncable/test_user_share.h" |
16 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
18 | 19 |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 registrar()->ConfigureDataTypes(types_to_add, ModelTypeSet()); | 264 registrar()->ConfigureDataTypes(types_to_add, ModelTypeSet()); |
264 EXPECT_EQ(ModelTypeSet(BOOKMARKS), newly_added_types); | 265 EXPECT_EQ(ModelTypeSet(BOOKMARKS), newly_added_types); |
265 EXPECT_EQ(types_to_add, registrar()->GetLastConfiguredTypes()); | 266 EXPECT_EQ(types_to_add, registrar()->GetLastConfiguredTypes()); |
266 ExpectRoutingInfo( | 267 ExpectRoutingInfo( |
267 {{AUTOFILL, GROUP_NON_BLOCKING}, {BOOKMARKS, GROUP_NON_BLOCKING}}); | 268 {{AUTOFILL, GROUP_NON_BLOCKING}, {BOOKMARKS, GROUP_NON_BLOCKING}}); |
268 } | 269 } |
269 | 270 |
270 } // namespace | 271 } // namespace |
271 | 272 |
272 } // namespace syncer | 273 } // namespace syncer |
OLD | NEW |