| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/frontend_data_type_controller.h" | 5 #include "components/sync/driver/frontend_data_type_controller.h" |
| 6 | 6 |
| 7 #include <memory> | |
| 8 | |
| 9 #include "base/bind.h" | 7 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 11 #include "base/callback.h" | 9 #include "base/callback.h" |
| 12 #include "base/location.h" | 10 #include "base/location.h" |
| 13 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 14 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
| 15 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
| 16 #include "base/threading/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
| 17 #include "base/tracked_objects.h" | 15 #include "base/tracked_objects.h" |
| 18 #include "components/sync/driver/change_processor_mock.h" | 16 #include "components/sync/driver/change_processor_mock.h" |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 SetActivateExpectations(DataTypeController::OK); | 227 SetActivateExpectations(DataTypeController::OK); |
| 230 SetStopExpectations(); | 228 SetStopExpectations(); |
| 231 EXPECT_EQ(DataTypeController::NOT_RUNNING, frontend_dtc_->state()); | 229 EXPECT_EQ(DataTypeController::NOT_RUNNING, frontend_dtc_->state()); |
| 232 Start(); | 230 Start(); |
| 233 EXPECT_EQ(DataTypeController::RUNNING, frontend_dtc_->state()); | 231 EXPECT_EQ(DataTypeController::RUNNING, frontend_dtc_->state()); |
| 234 frontend_dtc_->Stop(); | 232 frontend_dtc_->Stop(); |
| 235 EXPECT_EQ(DataTypeController::NOT_RUNNING, frontend_dtc_->state()); | 233 EXPECT_EQ(DataTypeController::NOT_RUNNING, frontend_dtc_->state()); |
| 236 } | 234 } |
| 237 | 235 |
| 238 } // namespace syncer | 236 } // namespace syncer |
| OLD | NEW |