| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <set> | 5 #include <set> |
| 6 #include <string> | 6 #include <string> |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "chrome/browser/sync/internal_api/write_node.h" | 33 #include "chrome/browser/sync/internal_api/write_node.h" |
| 34 #include "chrome/browser/sync/internal_api/write_transaction.h" | 34 #include "chrome/browser/sync/internal_api/write_transaction.h" |
| 35 #include "chrome/browser/sync/profile_sync_factory.h" | 35 #include "chrome/browser/sync/profile_sync_factory.h" |
| 36 #include "chrome/browser/sync/profile_sync_service.h" | 36 #include "chrome/browser/sync/profile_sync_service.h" |
| 37 #include "chrome/browser/sync/profile_sync_test_util.h" | 37 #include "chrome/browser/sync/profile_sync_test_util.h" |
| 38 #include "chrome/browser/sync/protocol/autofill_specifics.pb.h" | 38 #include "chrome/browser/sync/protocol/autofill_specifics.pb.h" |
| 39 #include "chrome/browser/sync/syncable/directory_manager.h" | 39 #include "chrome/browser/sync/syncable/directory_manager.h" |
| 40 #include "chrome/browser/sync/syncable/model_type.h" | 40 #include "chrome/browser/sync/syncable/model_type.h" |
| 41 #include "chrome/browser/sync/syncable/syncable.h" | 41 #include "chrome/browser/sync/syncable/syncable.h" |
| 42 #include "chrome/browser/sync/test_profile_sync_service.h" | 42 #include "chrome/browser/sync/test_profile_sync_service.h" |
| 43 #include "chrome/browser/sync/test/engine/test_id_factory.h" |
| 43 #include "chrome/browser/webdata/autofill_change.h" | 44 #include "chrome/browser/webdata/autofill_change.h" |
| 44 #include "chrome/browser/webdata/autofill_entry.h" | 45 #include "chrome/browser/webdata/autofill_entry.h" |
| 45 #include "chrome/browser/webdata/autofill_table.h" | 46 #include "chrome/browser/webdata/autofill_table.h" |
| 46 #include "chrome/browser/webdata/web_database.h" | 47 #include "chrome/browser/webdata/web_database.h" |
| 47 #include "chrome/common/chrome_notification_types.h" | 48 #include "chrome/common/chrome_notification_types.h" |
| 48 #include "chrome/common/net/gaia/gaia_constants.h" | 49 #include "chrome/common/net/gaia/gaia_constants.h" |
| 49 #include "chrome/test/sync/engine/test_id_factory.h" | |
| 50 #include "content/browser/browser_thread.h" | 50 #include "content/browser/browser_thread.h" |
| 51 #include "content/common/notification_source.h" | 51 #include "content/common/notification_source.h" |
| 52 #include "testing/gmock/include/gmock/gmock.h" | 52 #include "testing/gmock/include/gmock/gmock.h" |
| 53 | 53 |
| 54 using base::Time; | 54 using base::Time; |
| 55 using base::WaitableEvent; | 55 using base::WaitableEvent; |
| 56 using browser_sync::AutofillChangeProcessor; | 56 using browser_sync::AutofillChangeProcessor; |
| 57 using browser_sync::AutofillDataTypeController; | 57 using browser_sync::AutofillDataTypeController; |
| 58 using browser_sync::AutofillModelAssociator; | 58 using browser_sync::AutofillModelAssociator; |
| 59 using browser_sync::AutofillProfileChangeProcessor; | 59 using browser_sync::AutofillProfileChangeProcessor; |
| (...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1079 std::vector<AutofillEntry> sync_entries; | 1079 std::vector<AutofillEntry> sync_entries; |
| 1080 std::vector<AutofillProfile> sync_profiles; | 1080 std::vector<AutofillProfile> sync_profiles; |
| 1081 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles)); | 1081 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles)); |
| 1082 EXPECT_EQ(3U, sync_entries.size()); | 1082 EXPECT_EQ(3U, sync_entries.size()); |
| 1083 EXPECT_EQ(0U, sync_profiles.size()); | 1083 EXPECT_EQ(0U, sync_profiles.size()); |
| 1084 for (size_t i = 0; i < sync_entries.size(); i++) { | 1084 for (size_t i = 0; i < sync_entries.size(); i++) { |
| 1085 VLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name() | 1085 VLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name() |
| 1086 << ", " << sync_entries[i].key().value(); | 1086 << ", " << sync_entries[i].key().value(); |
| 1087 } | 1087 } |
| 1088 } | 1088 } |
| OLD | NEW |