| 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 <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 30 matching lines...) Expand all Loading... |
| 41 #include "chrome/browser/webdata/autofill_entry.h" | 41 #include "chrome/browser/webdata/autofill_entry.h" |
| 42 #include "chrome/browser/webdata/autofill_profile_syncable_service.h" | 42 #include "chrome/browser/webdata/autofill_profile_syncable_service.h" |
| 43 #include "chrome/browser/webdata/autofill_table.h" | 43 #include "chrome/browser/webdata/autofill_table.h" |
| 44 #include "chrome/browser/webdata/web_data_service.h" | 44 #include "chrome/browser/webdata/web_data_service.h" |
| 45 #include "chrome/browser/webdata/web_data_service_factory.h" | 45 #include "chrome/browser/webdata/web_data_service_factory.h" |
| 46 #include "chrome/browser/webdata/web_database.h" | 46 #include "chrome/browser/webdata/web_database.h" |
| 47 #include "chrome/common/chrome_notification_types.h" | 47 #include "chrome/common/chrome_notification_types.h" |
| 48 #include "chrome/common/net/gaia/gaia_constants.h" | 48 #include "chrome/common/net/gaia/gaia_constants.h" |
| 49 #include "content/public/browser/notification_source.h" | 49 #include "content/public/browser/notification_source.h" |
| 50 #include "content/public/test/test_browser_thread.h" | 50 #include "content/public/test/test_browser_thread.h" |
| 51 #include "sync/internal_api/public/base/model_type.h" |
| 51 #include "sync/internal_api/public/read_node.h" | 52 #include "sync/internal_api/public/read_node.h" |
| 52 #include "sync/internal_api/public/read_transaction.h" | 53 #include "sync/internal_api/public/read_transaction.h" |
| 53 #include "sync/internal_api/public/syncable/model_type.h" | |
| 54 #include "sync/internal_api/public/write_node.h" | 54 #include "sync/internal_api/public/write_node.h" |
| 55 #include "sync/internal_api/public/write_transaction.h" | 55 #include "sync/internal_api/public/write_transaction.h" |
| 56 #include "sync/protocol/autofill_specifics.pb.h" | 56 #include "sync/protocol/autofill_specifics.pb.h" |
| 57 #include "sync/syncable/mutable_entry.h" | 57 #include "sync/syncable/mutable_entry.h" |
| 58 #include "sync/syncable/write_transaction.h" | 58 #include "sync/syncable/write_transaction.h" |
| 59 #include "sync/test/engine/test_id_factory.h" | 59 #include "sync/test/engine/test_id_factory.h" |
| 60 #include "testing/gmock/include/gmock/gmock.h" | 60 #include "testing/gmock/include/gmock/gmock.h" |
| 61 | 61 |
| 62 using base::Time; | 62 using base::Time; |
| 63 using base::TimeDelta; | 63 using base::TimeDelta; |
| (...skipping 1188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1252 std::vector<AutofillEntry> sync_entries; | 1252 std::vector<AutofillEntry> sync_entries; |
| 1253 std::vector<AutofillProfile> sync_profiles; | 1253 std::vector<AutofillProfile> sync_profiles; |
| 1254 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles)); | 1254 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles)); |
| 1255 EXPECT_EQ(3U, sync_entries.size()); | 1255 EXPECT_EQ(3U, sync_entries.size()); |
| 1256 EXPECT_EQ(0U, sync_profiles.size()); | 1256 EXPECT_EQ(0U, sync_profiles.size()); |
| 1257 for (size_t i = 0; i < sync_entries.size(); i++) { | 1257 for (size_t i = 0; i < sync_entries.size(); i++) { |
| 1258 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name() | 1258 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name() |
| 1259 << ", " << sync_entries[i].key().value(); | 1259 << ", " << sync_entries[i].key().value(); |
| 1260 } | 1260 } |
| 1261 } | 1261 } |
| OLD | NEW |