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

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

Issue 14679005: Create an AutofillBackend interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up Created 7 years, 7 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 user_share); 326 user_share);
327 } 327 }
328 328
329 ACTION(MakeSharedChangeProcessor) { 329 ACTION(MakeSharedChangeProcessor) {
330 return new SharedChangeProcessor(); 330 return new SharedChangeProcessor();
331 } 331 }
332 332
333 ACTION_P(MakeAutofillProfileSyncComponents, wds) { 333 ACTION_P(MakeAutofillProfileSyncComponents, wds) {
334 EXPECT_TRUE(BrowserThread::CurrentlyOn(BrowserThread::DB)); 334 EXPECT_TRUE(BrowserThread::CurrentlyOn(BrowserThread::DB));
335 if (!BrowserThread::CurrentlyOn(BrowserThread::DB)) 335 if (!BrowserThread::CurrentlyOn(BrowserThread::DB))
336 return base::WeakPtr<syncer::SyncableService>();; 336 return base::WeakPtr<syncer::SyncableService>();
337 return AutofillProfileSyncableService::FromWebDataService(wds)->AsWeakPtr(); 337 return AutofillProfileSyncableService::FromWebDataService(wds)->AsWeakPtr();
338 } 338 }
339 339
340 class AbstractAutofillFactory { 340 class AbstractAutofillFactory {
341 public: 341 public:
342 virtual DataTypeController* CreateDataTypeController( 342 virtual DataTypeController* CreateDataTypeController(
343 ProfileSyncComponentsFactory* factory, 343 ProfileSyncComponentsFactory* factory,
344 ProfileMock* profile, 344 ProfileMock* profile,
345 ProfileSyncService* service) = 0; 345 ProfileSyncService* service) = 0;
346 virtual void SetExpectation(ProfileSyncComponentsFactoryMock* factory, 346 virtual void SetExpectation(ProfileSyncComponentsFactoryMock* factory,
(...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after
1365 std::vector<AutofillEntry> sync_entries; 1365 std::vector<AutofillEntry> sync_entries;
1366 std::vector<AutofillProfile> sync_profiles; 1366 std::vector<AutofillProfile> sync_profiles;
1367 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles)); 1367 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles));
1368 EXPECT_EQ(3U, sync_entries.size()); 1368 EXPECT_EQ(3U, sync_entries.size());
1369 EXPECT_EQ(0U, sync_profiles.size()); 1369 EXPECT_EQ(0U, sync_profiles.size());
1370 for (size_t i = 0; i < sync_entries.size(); i++) { 1370 for (size_t i = 0; i < sync_entries.size(); i++) {
1371 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name() 1371 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name()
1372 << ", " << sync_entries[i].key().value(); 1372 << ", " << sync_entries[i].key().value();
1373 } 1373 }
1374 } 1374 }
OLDNEW
« no previous file with comments | « no previous file | components/autofill.gypi » ('j') | components/autofill/browser/webdata/autofill_webdata_backend.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698