| 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_driver/glue/sync_backend_registrar.h" | 5 #include "components/sync_driver/glue/sync_backend_registrar.h" |
| 6 | 6 |
| 7 #include "base/location.h" | 7 #include "base/location.h" |
| 8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
| 9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
| 10 #include "components/sync/base/model_type.h" |
| 11 #include "components/sync/core/test/test_user_share.h" |
| 12 #include "components/sync/engine/passive_model_worker.h" |
| 10 #include "components/sync_driver/change_processor_mock.h" | 13 #include "components/sync_driver/change_processor_mock.h" |
| 11 #include "components/sync_driver/fake_sync_client.h" | 14 #include "components/sync_driver/fake_sync_client.h" |
| 12 #include "components/sync_driver/glue/browser_thread_model_worker.h" | 15 #include "components/sync_driver/glue/browser_thread_model_worker.h" |
| 13 #include "components/sync_driver/sync_api_component_factory_mock.h" | 16 #include "components/sync_driver/sync_api_component_factory_mock.h" |
| 14 #include "sync/internal_api/public/base/model_type.h" | |
| 15 #include "sync/internal_api/public/engine/passive_model_worker.h" | |
| 16 #include "sync/internal_api/public/test/test_user_share.h" | |
| 17 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 19 | 19 |
| 20 namespace browser_sync { | 20 namespace browser_sync { |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 | 23 |
| 24 using ::testing::_; | 24 using ::testing::_; |
| 25 using ::testing::InSequence; | 25 using ::testing::InSequence; |
| 26 using ::testing::Return; | 26 using ::testing::Return; |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 db_thread_lock_.Release(); | 460 db_thread_lock_.Release(); |
| 461 | 461 |
| 462 // Run the main thread loop until all workers have been removed and the | 462 // Run the main thread loop until all workers have been removed and the |
| 463 // registrar destroyed. | 463 // registrar destroyed. |
| 464 run_loop_.Run(); | 464 run_loop_.Run(); |
| 465 } | 465 } |
| 466 | 466 |
| 467 } // namespace | 467 } // namespace |
| 468 | 468 |
| 469 } // namespace browser_sync | 469 } // namespace browser_sync |
| OLD | NEW |