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

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

Issue 1419103009: [Sync] Componentize ProfileSyncService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@max_bogue_sync_backend_host
Patch Set: Rebase Created 5 years, 1 month 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 (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
11 #include "chrome/browser/sync/profile_sync_service.h"
12 #include "chrome/browser/sync/test/integration/autofill_helper.h" 11 #include "chrome/browser/sync/test/integration/autofill_helper.h"
13 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" 12 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h"
14 #include "chrome/browser/sync/test/integration/single_client_status_change_check er.h" 13 #include "chrome/browser/sync/test/integration/single_client_status_change_check er.h"
15 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" 14 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h"
16 #include "chrome/browser/sync/test/integration/sync_test.h" 15 #include "chrome/browser/sync/test/integration/sync_test.h"
17 #include "chrome/browser/web_data_service_factory.h" 16 #include "chrome/browser/web_data_service_factory.h"
18 #include "components/autofill/core/browser/credit_card.h" 17 #include "components/autofill/core/browser/credit_card.h"
19 #include "components/autofill/core/browser/field_types.h" 18 #include "components/autofill/core/browser/field_types.h"
20 #include "components/autofill/core/browser/personal_data_manager.h" 19 #include "components/autofill/core/browser/personal_data_manager.h"
21 #include "components/autofill/core/common/autofill_pref_names.h" 20 #include "components/autofill/core/common/autofill_pref_names.h"
21 #include "components/browser_sync/browser/profile_sync_service.h"
22 #include "content/public/browser/notification_service.h" 22 #include "content/public/browser/notification_service.h"
23 #include "sync/internal_api/public/base/model_type.h" 23 #include "sync/internal_api/public/base/model_type.h"
24 #include "sync/test/fake_server/fake_server_entity.h" 24 #include "sync/test/fake_server/fake_server_entity.h"
25 #include "sync/test/fake_server/unique_client_entity.h" 25 #include "sync/test/fake_server/unique_client_entity.h"
26 26
27 using autofill_helper::GetPersonalDataManager; 27 using autofill_helper::GetPersonalDataManager;
28 using sync_integration_test_util::AwaitCommitActivityCompletion; 28 using sync_integration_test_util::AwaitCommitActivityCompletion;
29 29
30 namespace { 30 namespace {
31 31
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 std::vector<autofill::CreditCard*> cards = pdm->GetCreditCards(); 276 std::vector<autofill::CreditCard*> cards = pdm->GetCreditCards();
277 ASSERT_EQ(1uL, cards.size()); 277 ASSERT_EQ(1uL, cards.size());
278 278
279 // Turn off the wallet autofill pref, the card should be gone as a side 279 // Turn off the wallet autofill pref, the card should be gone as a side
280 // effect of the wallet data type controller noticing. 280 // effect of the wallet data type controller noticing.
281 GetProfile(0)->GetPrefs()->SetBoolean( 281 GetProfile(0)->GetPrefs()->SetBoolean(
282 autofill::prefs::kAutofillWalletImportEnabled, false); 282 autofill::prefs::kAutofillWalletImportEnabled, false);
283 cards = pdm->GetCreditCards(); 283 cards = pdm->GetCreditCards();
284 ASSERT_EQ(0uL, cards.size()); 284 ASSERT_EQ(0uL, cards.size());
285 } 285 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698