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

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

Issue 12937016: Rename AutofillWebDataServiceImpl --> AutofillWebDataService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix DEPS Created 7 years, 8 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 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
(...skipping 22 matching lines...) Expand all
33 #include "chrome/browser/sync/profile_sync_components_factory.h" 33 #include "chrome/browser/sync/profile_sync_components_factory.h"
34 #include "chrome/browser/sync/profile_sync_service.h" 34 #include "chrome/browser/sync/profile_sync_service.h"
35 #include "chrome/browser/sync/profile_sync_service_factory.h" 35 #include "chrome/browser/sync/profile_sync_service_factory.h"
36 #include "chrome/browser/sync/profile_sync_test_util.h" 36 #include "chrome/browser/sync/profile_sync_test_util.h"
37 #include "chrome/browser/sync/test_profile_sync_service.h" 37 #include "chrome/browser/sync/test_profile_sync_service.h"
38 #include "chrome/browser/webdata/autocomplete_syncable_service.h" 38 #include "chrome/browser/webdata/autocomplete_syncable_service.h"
39 #include "chrome/browser/webdata/autofill_change.h" 39 #include "chrome/browser/webdata/autofill_change.h"
40 #include "chrome/browser/webdata/autofill_entry.h" 40 #include "chrome/browser/webdata/autofill_entry.h"
41 #include "chrome/browser/webdata/autofill_profile_syncable_service.h" 41 #include "chrome/browser/webdata/autofill_profile_syncable_service.h"
42 #include "chrome/browser/webdata/autofill_table.h" 42 #include "chrome/browser/webdata/autofill_table.h"
43 #include "chrome/browser/webdata/autofill_web_data_service_impl.h" 43 #include "chrome/browser/webdata/autofill_web_data_service.h"
44 #include "chrome/browser/webdata/web_data_service_factory.h" 44 #include "chrome/browser/webdata/web_data_service_factory.h"
45 #include "chrome/browser/webdata/web_data_service_test_util.h" 45 #include "chrome/browser/webdata/web_data_service_test_util.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 "components/autofill/browser/autofill_common_test.h" 48 #include "components/autofill/browser/autofill_common_test.h"
49 #include "components/autofill/browser/personal_data_manager.h" 49 #include "components/autofill/browser/personal_data_manager.h"
50 #include "content/public/browser/notification_source.h" 50 #include "content/public/browser/notification_source.h"
51 #include "content/public/test/test_browser_thread.h" 51 #include "content/public/test/test_browser_thread.h"
52 #include "google_apis/gaia/gaia_constants.h" 52 #include "google_apis/gaia/gaia_constants.h"
53 #include "sync/internal_api/public/base/model_type.h" 53 #include "sync/internal_api/public/base/model_type.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // tests require a WebDataService. 165 // tests require a WebDataService.
166 return 0; 166 return 0;
167 } 167 }
168 168
169 private: 169 private:
170 virtual ~TokenWebDataServiceFake() {} 170 virtual ~TokenWebDataServiceFake() {}
171 171
172 DISALLOW_COPY_AND_ASSIGN(TokenWebDataServiceFake); 172 DISALLOW_COPY_AND_ASSIGN(TokenWebDataServiceFake);
173 }; 173 };
174 174
175 class WebDataServiceFake : public AutofillWebDataServiceImpl { 175 class WebDataServiceFake : public AutofillWebDataService {
176 public: 176 public:
177 WebDataServiceFake() 177 WebDataServiceFake()
178 : AutofillWebDataServiceImpl( 178 : AutofillWebDataService(
179 NULL, WebDataServiceBase::ProfileErrorCallback()), 179 NULL, WebDataServiceBase::ProfileErrorCallback()),
180 web_database_(NULL), 180 web_database_(NULL),
181 syncable_service_created_or_destroyed_(false, false) { 181 syncable_service_created_or_destroyed_(false, false) {
182 } 182 }
183 183
184 void SetDatabase(WebDatabase* web_database) { 184 void SetDatabase(WebDatabase* web_database) {
185 web_database_ = web_database; 185 web_database_ = web_database;
186 } 186 }
187 187
188 void StartSyncableService() { 188 void StartSyncableService() {
(...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after
1320 std::vector<AutofillEntry> sync_entries; 1320 std::vector<AutofillEntry> sync_entries;
1321 std::vector<AutofillProfile> sync_profiles; 1321 std::vector<AutofillProfile> sync_profiles;
1322 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles)); 1322 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles));
1323 EXPECT_EQ(3U, sync_entries.size()); 1323 EXPECT_EQ(3U, sync_entries.size());
1324 EXPECT_EQ(0U, sync_profiles.size()); 1324 EXPECT_EQ(0U, sync_profiles.size());
1325 for (size_t i = 0; i < sync_entries.size(); i++) { 1325 for (size_t i = 0; i < sync_entries.size(); i++) {
1326 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name() 1326 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name()
1327 << ", " << sync_entries[i].key().value(); 1327 << ", " << sync_entries[i].key().value();
1328 } 1328 }
1329 } 1329 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_components_factory_impl.cc ('k') | chrome/browser/sync/test/integration/autofill_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698