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 <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
16 #include "base/run_loop.h" | 16 #include "base/run_loop.h" |
17 #include "base/threading/thread.h" | 17 #include "base/threading/thread.h" |
18 #include "base/threading/thread_task_runner_handle.h" | 18 #include "base/threading/thread_task_runner_handle.h" |
19 #include "components/autofill/core/browser/webdata/autocomplete_syncable_service
.h" | 19 #include "components/autofill/core/browser/webdata/autocomplete_syncable_service
.h" |
20 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" | 20 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
21 #include "components/sync/api/sync_error.h" | |
22 #include "components/sync/driver/data_type_controller_mock.h" | 21 #include "components/sync/driver/data_type_controller_mock.h" |
23 #include "components/sync/driver/fake_sync_client.h" | 22 #include "components/sync/driver/fake_sync_client.h" |
| 23 #include "components/sync/model/sync_error.h" |
24 #include "components/webdata_services/web_data_service_test_util.h" | 24 #include "components/webdata_services/web_data_service_test_util.h" |
25 #include "testing/gmock/include/gmock/gmock.h" | 25 #include "testing/gmock/include/gmock/gmock.h" |
26 #include "testing/gtest/include/gtest/gtest.h" | 26 #include "testing/gtest/include/gtest/gtest.h" |
27 | 27 |
28 using autofill::AutofillWebDataService; | 28 using autofill::AutofillWebDataService; |
29 using autofill::AutofillWebDataBackend; | 29 using autofill::AutofillWebDataBackend; |
30 | 30 |
31 namespace browser_sync { | 31 namespace browser_sync { |
32 | 32 |
33 namespace { | 33 namespace { |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 | 211 |
212 EXPECT_EQ(syncer::DataTypeController::ASSOCIATION_FAILED, last_start_result_); | 212 EXPECT_EQ(syncer::DataTypeController::ASSOCIATION_FAILED, last_start_result_); |
213 EXPECT_TRUE(last_start_error_.IsSet()); | 213 EXPECT_TRUE(last_start_error_.IsSet()); |
214 | 214 |
215 EXPECT_EQ(syncer::DataTypeController::DISABLED, autofill_dtc_->state()); | 215 EXPECT_EQ(syncer::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 |