Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Side by Side Diff: components/browser_sync/profile_sync_service_autofill_unittest.cc

Issue 2407163004: [Sync] Move some directory-related things from core/ to syncable/. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 25 matching lines...) Expand all
36 #include "components/autofill/core/browser/webdata/autofill_profile_data_type_co ntroller.h" 36 #include "components/autofill/core/browser/webdata/autofill_profile_data_type_co ntroller.h"
37 #include "components/autofill/core/browser/webdata/autofill_profile_syncable_ser vice.h" 37 #include "components/autofill/core/browser/webdata/autofill_profile_syncable_ser vice.h"
38 #include "components/autofill/core/browser/webdata/autofill_table.h" 38 #include "components/autofill/core/browser/webdata/autofill_table.h"
39 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" 39 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
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/abstract_profile_sync_service_test.h" 41 #include "components/browser_sync/abstract_profile_sync_service_test.h"
42 #include "components/browser_sync/profile_sync_service.h" 42 #include "components/browser_sync/profile_sync_service.h"
43 #include "components/browser_sync/test_profile_sync_service.h" 43 #include "components/browser_sync/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"
47 #include "components/sync/core/read_transaction.h"
48 #include "components/sync/core/write_node.h"
49 #include "components/sync/core/write_transaction.h"
50 #include "components/sync/driver/data_type_controller.h" 46 #include "components/sync/driver/data_type_controller.h"
51 #include "components/sync/driver/data_type_manager_impl.h" 47 #include "components/sync/driver/data_type_manager_impl.h"
52 #include "components/sync/driver/sync_api_component_factory_mock.h" 48 #include "components/sync/driver/sync_api_component_factory_mock.h"
53 #include "components/sync/protocol/autofill_specifics.pb.h" 49 #include "components/sync/protocol/autofill_specifics.pb.h"
54 #include "components/sync/syncable/mutable_entry.h" 50 #include "components/sync/syncable/mutable_entry.h"
51 #include "components/sync/syncable/read_node.h"
52 #include "components/sync/syncable/read_transaction.h"
55 #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"
55 #include "components/sync/syncable/write_transaction.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 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after
1465 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles)); 1465 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles));
1466 EXPECT_EQ(3U, sync_entries.size()); 1466 EXPECT_EQ(3U, sync_entries.size());
1467 EXPECT_EQ(0U, sync_profiles.size()); 1467 EXPECT_EQ(0U, sync_profiles.size());
1468 for (size_t i = 0; i < sync_entries.size(); i++) { 1468 for (size_t i = 0; i < sync_entries.size(); i++) {
1469 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name() << ", " 1469 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name() << ", "
1470 << sync_entries[i].key().value(); 1470 << sync_entries[i].key().value();
1471 } 1471 }
1472 } 1472 }
1473 1473
1474 } // namespace browser_sync 1474 } // namespace browser_sync
OLDNEW
« no previous file with comments | « components/browser_sync/profile_sync_service.cc ('k') | components/browser_sync/profile_sync_service_bookmark_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698