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/autofill/core/browser/webdata/autofill_data_type_controller
.h" | 5 #include "components/autofill/core/browser/webdata/autofill_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/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
15 #include "base/thread_task_runner_handle.h" | |
16 #include "base/threading/thread.h" | 15 #include "base/threading/thread.h" |
| 16 #include "base/threading/thread_task_runner_handle.h" |
17 #include "components/autofill/core/browser/webdata/autocomplete_syncable_service
.h" | 17 #include "components/autofill/core/browser/webdata/autocomplete_syncable_service
.h" |
18 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" | 18 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
19 #include "components/sync_driver/data_type_controller_mock.h" | 19 #include "components/sync_driver/data_type_controller_mock.h" |
20 #include "components/sync_driver/fake_sync_client.h" | 20 #include "components/sync_driver/fake_sync_client.h" |
21 #include "components/webdata_services/web_data_service_test_util.h" | 21 #include "components/webdata_services/web_data_service_test_util.h" |
22 #include "sync/api/sync_error.h" | 22 #include "sync/api/sync_error.h" |
23 #include "testing/gmock/include/gmock/gmock.h" | 23 #include "testing/gmock/include/gmock/gmock.h" |
24 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
25 | 25 |
26 using autofill::AutofillWebDataService; | 26 using autofill::AutofillWebDataService; |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 EXPECT_EQ(sync_driver::DataTypeController::ASSOCIATION_FAILED, | 211 EXPECT_EQ(sync_driver::DataTypeController::ASSOCIATION_FAILED, |
212 last_start_result_); | 212 last_start_result_); |
213 EXPECT_TRUE(last_start_error_.IsSet()); | 213 EXPECT_TRUE(last_start_error_.IsSet()); |
214 | 214 |
215 EXPECT_EQ(sync_driver::DataTypeController::DISABLED, autofill_dtc_->state()); | 215 EXPECT_EQ(sync_driver::DataTypeController::DISABLED, autofill_dtc_->state()); |
216 } | 216 } |
217 | 217 |
218 } // namespace | 218 } // namespace |
219 | 219 |
220 } // namespace browser_sync | 220 } // namespace browser_sync |
OLD | NEW |