OLD | NEW |
1 // Copyright (c) 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 <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 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 "google_apis/gaia/gaia_constants.h" | 51 #include "google_apis/gaia/gaia_constants.h" |
52 #include "sync/internal_api/public/base/model_type.h" | 52 #include "sync/internal_api/public/base/model_type.h" |
53 #include "sync/internal_api/public/read_node.h" | 53 #include "sync/internal_api/public/read_node.h" |
54 #include "sync/internal_api/public/read_transaction.h" | 54 #include "sync/internal_api/public/read_transaction.h" |
55 #include "sync/internal_api/public/write_node.h" | 55 #include "sync/internal_api/public/write_node.h" |
56 #include "sync/internal_api/public/write_transaction.h" | 56 #include "sync/internal_api/public/write_transaction.h" |
57 #include "sync/protocol/autofill_specifics.pb.h" | 57 #include "sync/protocol/autofill_specifics.pb.h" |
58 #include "sync/syncable/mutable_entry.h" | 58 #include "sync/syncable/mutable_entry.h" |
59 #include "sync/syncable/write_transaction.h" | 59 #include "sync/syncable/syncable_write_transaction.h" |
60 #include "sync/test/engine/test_id_factory.h" | 60 #include "sync/test/engine/test_id_factory.h" |
61 #include "testing/gmock/include/gmock/gmock.h" | 61 #include "testing/gmock/include/gmock/gmock.h" |
62 | 62 |
63 using base::Time; | 63 using base::Time; |
64 using base::TimeDelta; | 64 using base::TimeDelta; |
65 using base::WaitableEvent; | 65 using base::WaitableEvent; |
66 using browser_sync::AutofillDataTypeController; | 66 using browser_sync::AutofillDataTypeController; |
67 using browser_sync::AutofillProfileDataTypeController; | 67 using browser_sync::AutofillProfileDataTypeController; |
68 using browser_sync::DataTypeController; | 68 using browser_sync::DataTypeController; |
69 using browser_sync::GenericChangeProcessor; | 69 using browser_sync::GenericChangeProcessor; |
(...skipping 1226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1296 std::vector<AutofillEntry> sync_entries; | 1296 std::vector<AutofillEntry> sync_entries; |
1297 std::vector<AutofillProfile> sync_profiles; | 1297 std::vector<AutofillProfile> sync_profiles; |
1298 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles)); | 1298 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles)); |
1299 EXPECT_EQ(3U, sync_entries.size()); | 1299 EXPECT_EQ(3U, sync_entries.size()); |
1300 EXPECT_EQ(0U, sync_profiles.size()); | 1300 EXPECT_EQ(0U, sync_profiles.size()); |
1301 for (size_t i = 0; i < sync_entries.size(); i++) { | 1301 for (size_t i = 0; i < sync_entries.size(); i++) { |
1302 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name() | 1302 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name() |
1303 << ", " << sync_entries[i].key().value(); | 1303 << ", " << sync_entries[i].key().value(); |
1304 } | 1304 } |
1305 } | 1305 } |
OLD | NEW |