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/non_ui_data_type_controller.h" | 5 #include "components/sync/driver/non_ui_data_type_controller.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 EXPECT_EQ(DataTypeController::RUNNING, non_ui_dtc_->state()); | 478 EXPECT_EQ(DataTypeController::RUNNING, non_ui_dtc_->state()); |
479 | 479 |
480 testing::Mock::VerifyAndClearExpectations(&start_callback_); | 480 testing::Mock::VerifyAndClearExpectations(&start_callback_); |
481 EXPECT_CALL(model_load_callback_, Run(_, _)); | 481 EXPECT_CALL(model_load_callback_, Run(_, _)); |
482 syncer::SyncError error(FROM_HERE, syncer::SyncError::DATATYPE_ERROR, "error", | 482 syncer::SyncError error(FROM_HERE, syncer::SyncError::DATATYPE_ERROR, "error", |
483 non_ui_dtc_->type()); | 483 non_ui_dtc_->type()); |
484 backend_thread_.task_runner()->PostTask( | 484 backend_thread_.task_runner()->PostTask( |
485 FROM_HERE, | 485 FROM_HERE, |
486 base::Bind( | 486 base::Bind( |
487 &NonUIDataTypeControllerFake::OnSingleDataTypeUnrecoverableError, | 487 &NonUIDataTypeControllerFake::OnSingleDataTypeUnrecoverableError, |
488 non_ui_dtc_.get(), error)); | 488 non_ui_dtc_, error)); |
489 WaitForDTC(); | 489 WaitForDTC(); |
490 } | 490 } |
491 | 491 |
492 } // namespace | 492 } // namespace |
493 | 493 |
494 } // namespace sync_driver | 494 } // namespace sync_driver |
OLD | NEW |