| 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/device_info_data_type_controller.h" | 5 #include "components/sync_driver/device_info_data_type_controller.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 11 #include "base/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
| 12 #include "components/sync_driver/fake_sync_client.h" | 12 #include "components/sync_driver/fake_sync_client.h" |
| 13 #include "components/sync_driver/local_device_info_provider_mock.h" | 13 #include "components/sync_driver/local_device_info_provider_mock.h" |
| 14 #include "components/sync_driver/sync_api_component_factory.h" | 14 #include "components/sync_driver/sync_api_component_factory.h" |
| 15 #include "sync/internal_api/public/base/model_type.h" | 15 #include "sync/internal_api/public/base/model_type.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 17 |
| 18 namespace sync_driver { | 18 namespace sync_driver { |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 controller_->Stop(); | 121 controller_->Stop(); |
| 122 // Destroy |local_device_| and |controller_| out of order | 122 // Destroy |local_device_| and |controller_| out of order |
| 123 // to verify that the controller doesn't crash in the destructor. | 123 // to verify that the controller doesn't crash in the destructor. |
| 124 local_device_.reset(); | 124 local_device_.reset(); |
| 125 controller_ = NULL; | 125 controller_ = NULL; |
| 126 } | 126 } |
| 127 | 127 |
| 128 } // namespace | 128 } // namespace |
| 129 | 129 |
| 130 } // namespace sync_driver | 130 } // namespace sync_driver |
| OLD | NEW |