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

Side by Side Diff: chrome/browser/sync/test/integration/two_client_autofill_sync_test.cc

Issue 14564003: Make PersonalDataManager use GetCreditCards() (rather than using credit_cards_ directly) so Autofill (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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 (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 "base/utf_string_conversions.h" 5 #include "base/utf_string_conversions.h"
6 #include "chrome/browser/sync/profile_sync_service_harness.h" 6 #include "chrome/browser/sync/profile_sync_service_harness.h"
7 #include "chrome/browser/sync/test/integration/autofill_helper.h" 7 #include "chrome/browser/sync/test/integration/autofill_helper.h"
8 #include "chrome/browser/sync/test/integration/bookmarks_helper.h" 8 #include "chrome/browser/sync/test/integration/bookmarks_helper.h"
9 #include "chrome/browser/sync/test/integration/sync_test.h" 9 #include "chrome/browser/sync/test/integration/sync_test.h"
10 #include "components/autofill/browser/autofill_profile.h" 10 #include "components/autofill/browser/autofill_profile.h"
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 std::vector<CreditCard> credit_cards; 470 std::vector<CreditCard> credit_cards;
471 credit_cards.push_back(card); 471 credit_cards.push_back(card);
472 SetCreditCards(0, &credit_cards); 472 SetCreditCards(0, &credit_cards);
473 473
474 MakeABookmarkChange(0); 474 MakeABookmarkChange(0);
475 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1))); 475 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
476 ASSERT_TRUE(ProfilesMatch(0, 1)); 476 ASSERT_TRUE(ProfilesMatch(0, 1));
477 ASSERT_EQ(1U, GetAllProfiles(0).size()); 477 ASSERT_EQ(1U, GetAllProfiles(0).size());
478 478
479 PersonalDataManager* pdm = GetPersonalDataManager(1); 479 PersonalDataManager* pdm = GetPersonalDataManager(1);
480 ASSERT_EQ(0U, pdm->credit_cards().size()); 480 ASSERT_EQ(0U, pdm->GetCreditCards().size());
481 } 481 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698