| 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/core/test/test_user_share.h" | |
| 11 #include "components/sync/driver/change_processor_mock.h" | 10 #include "components/sync/driver/change_processor_mock.h" |
| 12 #include "components/sync/driver/fake_sync_client.h" | 11 #include "components/sync/driver/fake_sync_client.h" |
| 13 #include "components/sync/driver/glue/browser_thread_model_worker.h" | 12 #include "components/sync/driver/glue/browser_thread_model_worker.h" |
| 14 #include "components/sync/driver/sync_api_component_factory_mock.h" | 13 #include "components/sync/driver/sync_api_component_factory_mock.h" |
| 15 #include "components/sync/engine/passive_model_worker.h" | 14 #include "components/sync/engine/passive_model_worker.h" |
| 15 #include "components/sync/syncable/test_user_share.h" |
| 16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 18 | 18 |
| 19 namespace syncer { | 19 namespace syncer { |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 using ::testing::_; | 23 using ::testing::_; |
| 24 using ::testing::InSequence; | 24 using ::testing::InSequence; |
| 25 using ::testing::Return; | 25 using ::testing::Return; |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 db_thread_lock_.Release(); | 423 db_thread_lock_.Release(); |
| 424 | 424 |
| 425 // Run the main thread loop until all workers have been removed and the | 425 // Run the main thread loop until all workers have been removed and the |
| 426 // registrar destroyed. | 426 // registrar destroyed. |
| 427 run_loop_.Run(); | 427 run_loop_.Run(); |
| 428 } | 428 } |
| 429 | 429 |
| 430 } // namespace | 430 } // namespace |
| 431 | 431 |
| 432 } // namespace syncer | 432 } // namespace syncer |
| OLD | NEW |