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

Side by Side Diff: chrome/browser/sync/profile_sync_service_autofill_unittest.cc

Issue 9395058: [Sync] Remove SyncableServiceAdapter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Self review Created 8 years, 10 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 | Annotate | Revision Log
OLDNEW
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 14 matching lines...) Expand all
25 #include "chrome/browser/autofill/personal_data_manager_factory.h" 25 #include "chrome/browser/autofill/personal_data_manager_factory.h"
26 #include "chrome/browser/signin/signin_manager.h" 26 #include "chrome/browser/signin/signin_manager.h"
27 #include "chrome/browser/signin/signin_manager_factory.h" 27 #include "chrome/browser/signin/signin_manager_factory.h"
28 #include "chrome/browser/sync/abstract_profile_sync_service_test.h" 28 #include "chrome/browser/sync/abstract_profile_sync_service_test.h"
29 #include "chrome/browser/sync/engine/model_changing_syncer_command.h" 29 #include "chrome/browser/sync/engine/model_changing_syncer_command.h"
30 #include "chrome/browser/sync/glue/autofill_data_type_controller.h" 30 #include "chrome/browser/sync/glue/autofill_data_type_controller.h"
31 #include "chrome/browser/sync/glue/autofill_profile_data_type_controller.h" 31 #include "chrome/browser/sync/glue/autofill_profile_data_type_controller.h"
32 #include "chrome/browser/sync/glue/data_type_controller.h" 32 #include "chrome/browser/sync/glue/data_type_controller.h"
33 #include "chrome/browser/sync/glue/generic_change_processor.h" 33 #include "chrome/browser/sync/glue/generic_change_processor.h"
34 #include "chrome/browser/sync/glue/shared_change_processor.h" 34 #include "chrome/browser/sync/glue/shared_change_processor.h"
35 #include "chrome/browser/sync/glue/syncable_service_adapter.h"
36 #include "chrome/browser/sync/internal_api/read_node.h" 35 #include "chrome/browser/sync/internal_api/read_node.h"
37 #include "chrome/browser/sync/internal_api/read_transaction.h" 36 #include "chrome/browser/sync/internal_api/read_transaction.h"
38 #include "chrome/browser/sync/internal_api/write_node.h" 37 #include "chrome/browser/sync/internal_api/write_node.h"
39 #include "chrome/browser/sync/internal_api/write_transaction.h" 38 #include "chrome/browser/sync/internal_api/write_transaction.h"
40 #include "chrome/browser/sync/profile_sync_components_factory.h" 39 #include "chrome/browser/sync/profile_sync_components_factory.h"
41 #include "chrome/browser/sync/profile_sync_service.h" 40 #include "chrome/browser/sync/profile_sync_service.h"
42 #include "chrome/browser/sync/profile_sync_test_util.h" 41 #include "chrome/browser/sync/profile_sync_test_util.h"
43 #include "chrome/browser/sync/protocol/autofill_specifics.pb.h" 42 #include "chrome/browser/sync/protocol/autofill_specifics.pb.h"
44 #include "chrome/browser/sync/syncable/directory_manager.h" 43 #include "chrome/browser/sync/syncable/directory_manager.h"
45 #include "chrome/browser/sync/syncable/model_type.h" 44 #include "chrome/browser/sync/syncable/model_type.h"
(...skipping 12 matching lines...) Expand all
58 #include "content/test/test_browser_thread.h" 57 #include "content/test/test_browser_thread.h"
59 #include "testing/gmock/include/gmock/gmock.h" 58 #include "testing/gmock/include/gmock/gmock.h"
60 59
61 using base::Time; 60 using base::Time;
62 using base::WaitableEvent; 61 using base::WaitableEvent;
63 using browser_sync::AutofillDataTypeController; 62 using browser_sync::AutofillDataTypeController;
64 using browser_sync::AutofillProfileDataTypeController; 63 using browser_sync::AutofillProfileDataTypeController;
65 using browser_sync::DataTypeController; 64 using browser_sync::DataTypeController;
66 using browser_sync::GenericChangeProcessor; 65 using browser_sync::GenericChangeProcessor;
67 using browser_sync::SharedChangeProcessor; 66 using browser_sync::SharedChangeProcessor;
68 using browser_sync::SyncableServiceAdapter;
69 using browser_sync::GROUP_DB; 67 using browser_sync::GROUP_DB;
70 using browser_sync::SyncBackendHostForProfileSyncTest; 68 using browser_sync::SyncBackendHostForProfileSyncTest;
71 using browser_sync::UnrecoverableErrorHandler; 69 using browser_sync::UnrecoverableErrorHandler;
72 using content::BrowserThread; 70 using content::BrowserThread;
73 using syncable::CREATE_NEW_UPDATE_ITEM; 71 using syncable::CREATE_NEW_UPDATE_ITEM;
74 using syncable::AUTOFILL; 72 using syncable::AUTOFILL;
75 using syncable::BASE_VERSION; 73 using syncable::BASE_VERSION;
76 using syncable::CREATE; 74 using syncable::CREATE;
77 using syncable::GET_BY_SERVER_TAG; 75 using syncable::GET_BY_SERVER_TAG;
78 using syncable::INVALID; 76 using syncable::INVALID;
(...skipping 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after
1238 std::vector<AutofillEntry> sync_entries; 1236 std::vector<AutofillEntry> sync_entries;
1239 std::vector<AutofillProfile> sync_profiles; 1237 std::vector<AutofillProfile> sync_profiles;
1240 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles)); 1238 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles));
1241 EXPECT_EQ(3U, sync_entries.size()); 1239 EXPECT_EQ(3U, sync_entries.size());
1242 EXPECT_EQ(0U, sync_profiles.size()); 1240 EXPECT_EQ(0U, sync_profiles.size());
1243 for (size_t i = 0; i < sync_entries.size(); i++) { 1241 for (size_t i = 0; i < sync_entries.size(); i++) {
1244 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name() 1242 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name()
1245 << ", " << sync_entries[i].key().value(); 1243 << ", " << sync_entries[i].key().value();
1246 } 1244 }
1247 } 1245 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698