OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "components/autofill/core/browser/webdata/autofill_data_type_controller
.h" | 34 #include "components/autofill/core/browser/webdata/autofill_data_type_controller
.h" |
35 #include "components/autofill/core/browser/webdata/autofill_entry.h" | 35 #include "components/autofill/core/browser/webdata/autofill_entry.h" |
36 #include "components/autofill/core/browser/webdata/autofill_profile_data_type_co
ntroller.h" | 36 #include "components/autofill/core/browser/webdata/autofill_profile_data_type_co
ntroller.h" |
37 #include "components/autofill/core/browser/webdata/autofill_profile_syncable_ser
vice.h" | 37 #include "components/autofill/core/browser/webdata/autofill_profile_syncable_ser
vice.h" |
38 #include "components/autofill/core/browser/webdata/autofill_table.h" | 38 #include "components/autofill/core/browser/webdata/autofill_table.h" |
39 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" | 39 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
40 #include "components/autofill/core/common/autofill_pref_names.h" | 40 #include "components/autofill/core/common/autofill_pref_names.h" |
41 #include "components/browser_sync/browser/abstract_profile_sync_service_test.h" | 41 #include "components/browser_sync/browser/abstract_profile_sync_service_test.h" |
42 #include "components/browser_sync/browser/profile_sync_service.h" | 42 #include "components/browser_sync/browser/profile_sync_service.h" |
43 #include "components/browser_sync/browser/test_profile_sync_service.h" | 43 #include "components/browser_sync/browser/test_profile_sync_service.h" |
| 44 #include "components/sync/base/model_type.h" |
| 45 #include "components/sync/core/data_type_debug_info_listener.h" |
| 46 #include "components/sync/core/read_node.h" |
| 47 #include "components/sync/core/read_transaction.h" |
| 48 #include "components/sync/core/write_node.h" |
| 49 #include "components/sync/core/write_transaction.h" |
| 50 #include "components/sync/protocol/autofill_specifics.pb.h" |
| 51 #include "components/sync/syncable/mutable_entry.h" |
| 52 #include "components/sync/syncable/syncable_write_transaction.h" |
44 #include "components/sync_driver/data_type_controller.h" | 53 #include "components/sync_driver/data_type_controller.h" |
45 #include "components/sync_driver/data_type_manager_impl.h" | 54 #include "components/sync_driver/data_type_manager_impl.h" |
46 #include "components/sync_driver/sync_api_component_factory_mock.h" | 55 #include "components/sync_driver/sync_api_component_factory_mock.h" |
47 #include "components/syncable_prefs/pref_service_syncable.h" | 56 #include "components/syncable_prefs/pref_service_syncable.h" |
48 #include "components/version_info/version_info.h" | 57 #include "components/version_info/version_info.h" |
49 #include "components/webdata/common/web_database.h" | 58 #include "components/webdata/common/web_database.h" |
50 #include "components/webdata_services/web_data_service_test_util.h" | 59 #include "components/webdata_services/web_data_service_test_util.h" |
51 #include "sync/internal_api/public/base/model_type.h" | |
52 #include "sync/internal_api/public/data_type_debug_info_listener.h" | |
53 #include "sync/internal_api/public/read_node.h" | |
54 #include "sync/internal_api/public/read_transaction.h" | |
55 #include "sync/internal_api/public/write_node.h" | |
56 #include "sync/internal_api/public/write_transaction.h" | |
57 #include "sync/protocol/autofill_specifics.pb.h" | |
58 #include "sync/syncable/mutable_entry.h" | |
59 #include "sync/syncable/syncable_write_transaction.h" | |
60 #include "testing/gmock/include/gmock/gmock.h" | 60 #include "testing/gmock/include/gmock/gmock.h" |
61 #include "testing/gtest/include/gtest/gtest.h" | 61 #include "testing/gtest/include/gtest/gtest.h" |
62 | 62 |
63 using autofill::AutocompleteSyncableService; | 63 using autofill::AutocompleteSyncableService; |
64 using autofill::AutofillChange; | 64 using autofill::AutofillChange; |
65 using autofill::AutofillChangeList; | 65 using autofill::AutofillChangeList; |
66 using autofill::AutofillEntry; | 66 using autofill::AutofillEntry; |
67 using autofill::AutofillKey; | 67 using autofill::AutofillKey; |
68 using autofill::AutofillProfile; | 68 using autofill::AutofillProfile; |
69 using autofill::AutofillProfileChange; | 69 using autofill::AutofillProfileChange; |
(...skipping 1410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1480 std::vector<AutofillEntry> sync_entries; | 1480 std::vector<AutofillEntry> sync_entries; |
1481 std::vector<AutofillProfile> sync_profiles; | 1481 std::vector<AutofillProfile> sync_profiles; |
1482 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles)); | 1482 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles)); |
1483 EXPECT_EQ(3U, sync_entries.size()); | 1483 EXPECT_EQ(3U, sync_entries.size()); |
1484 EXPECT_EQ(0U, sync_profiles.size()); | 1484 EXPECT_EQ(0U, sync_profiles.size()); |
1485 for (size_t i = 0; i < sync_entries.size(); i++) { | 1485 for (size_t i = 0; i < sync_entries.size(); i++) { |
1486 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name() | 1486 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name() |
1487 << ", " << sync_entries[i].key().value(); | 1487 << ", " << sync_entries[i].key().value(); |
1488 } | 1488 } |
1489 } | 1489 } |
OLD | NEW |