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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 #include "components/sync/driver/data_type_manager_impl.h" | 46 #include "components/sync/driver/data_type_manager_impl.h" |
47 #include "components/sync/driver/sync_api_component_factory_mock.h" | 47 #include "components/sync/driver/sync_api_component_factory_mock.h" |
48 #include "components/sync/engine/data_type_debug_info_listener.h" | 48 #include "components/sync/engine/data_type_debug_info_listener.h" |
49 #include "components/sync/protocol/autofill_specifics.pb.h" | 49 #include "components/sync/protocol/autofill_specifics.pb.h" |
50 #include "components/sync/syncable/mutable_entry.h" | 50 #include "components/sync/syncable/mutable_entry.h" |
51 #include "components/sync/syncable/read_node.h" | 51 #include "components/sync/syncable/read_node.h" |
52 #include "components/sync/syncable/read_transaction.h" | 52 #include "components/sync/syncable/read_transaction.h" |
53 #include "components/sync/syncable/syncable_write_transaction.h" | 53 #include "components/sync/syncable/syncable_write_transaction.h" |
54 #include "components/sync/syncable/write_node.h" | 54 #include "components/sync/syncable/write_node.h" |
55 #include "components/sync/syncable/write_transaction.h" | 55 #include "components/sync/syncable/write_transaction.h" |
56 #include "components/syncable_prefs/pref_service_syncable.h" | 56 #include "components/sync_preferences/pref_service_syncable.h" |
57 #include "components/version_info/version_info.h" | 57 #include "components/version_info/version_info.h" |
58 #include "components/webdata/common/web_database.h" | 58 #include "components/webdata/common/web_database.h" |
59 #include "components/webdata_services/web_data_service_test_util.h" | 59 #include "components/webdata_services/web_data_service_test_util.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; |
(...skipping 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1500 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles)); | 1500 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles)); |
1501 EXPECT_EQ(3U, sync_entries.size()); | 1501 EXPECT_EQ(3U, sync_entries.size()); |
1502 EXPECT_EQ(0U, sync_profiles.size()); | 1502 EXPECT_EQ(0U, sync_profiles.size()); |
1503 for (size_t i = 0; i < sync_entries.size(); i++) { | 1503 for (size_t i = 0; i < sync_entries.size(); i++) { |
1504 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name() << ", " | 1504 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name() << ", " |
1505 << sync_entries[i].key().value(); | 1505 << sync_entries[i].key().value(); |
1506 } | 1506 } |
1507 } | 1507 } |
1508 | 1508 |
1509 } // namespace browser_sync | 1509 } // namespace browser_sync |
OLD | NEW |