| 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 29 matching lines...) Expand all Loading... |
| 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" | 44 #include "components/sync/base/model_type.h" |
| 45 #include "components/sync/core/data_type_debug_info_listener.h" | 45 #include "components/sync/core/data_type_debug_info_listener.h" |
| 46 #include "components/sync/core/read_node.h" | 46 #include "components/sync/core/read_node.h" |
| 47 #include "components/sync/core/read_transaction.h" | 47 #include "components/sync/core/read_transaction.h" |
| 48 #include "components/sync/core/write_node.h" | 48 #include "components/sync/core/write_node.h" |
| 49 #include "components/sync/core/write_transaction.h" | 49 #include "components/sync/core/write_transaction.h" |
| 50 #include "components/sync/driver/data_type_controller.h" |
| 51 #include "components/sync/driver/data_type_manager_impl.h" |
| 52 #include "components/sync/driver/sync_api_component_factory_mock.h" |
| 50 #include "components/sync/protocol/autofill_specifics.pb.h" | 53 #include "components/sync/protocol/autofill_specifics.pb.h" |
| 51 #include "components/sync/syncable/mutable_entry.h" | 54 #include "components/sync/syncable/mutable_entry.h" |
| 52 #include "components/sync/syncable/syncable_write_transaction.h" | 55 #include "components/sync/syncable/syncable_write_transaction.h" |
| 53 #include "components/sync_driver/data_type_controller.h" | |
| 54 #include "components/sync_driver/data_type_manager_impl.h" | |
| 55 #include "components/sync_driver/sync_api_component_factory_mock.h" | |
| 56 #include "components/syncable_prefs/pref_service_syncable.h" | 56 #include "components/syncable_prefs/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; |
| (...skipping 1414 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 |