OLD | NEW |
---|---|
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 <memory> | |
pavely
2016/04/14 06:07:41
I think this file doesn't use scoped_ptr/unique/pt
dcheng
2016/04/14 16:56:06
Done.
| |
6 | |
5 #include "base/command_line.h" | 7 #include "base/command_line.h" |
6 #include "base/macros.h" | 8 #include "base/macros.h" |
7 #include "base/memory/scoped_ptr.h" | |
8 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
10 #include "chrome/browser/sync/test/integration/autofill_helper.h" | 11 #include "chrome/browser/sync/test/integration/autofill_helper.h" |
11 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" | 12 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" |
12 #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" |
13 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" | 14 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" |
14 #include "chrome/browser/sync/test/integration/sync_test.h" | 15 #include "chrome/browser/sync/test/integration/sync_test.h" |
15 #include "chrome/browser/web_data_service_factory.h" | 16 #include "chrome/browser/web_data_service_factory.h" |
16 #include "components/autofill/core/browser/credit_card.h" | 17 #include "components/autofill/core/browser/credit_card.h" |
17 #include "components/autofill/core/browser/field_types.h" | 18 #include "components/autofill/core/browser/field_types.h" |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
184 std::vector<autofill::CreditCard*> cards = pdm->GetCreditCards(); | 185 std::vector<autofill::CreditCard*> cards = pdm->GetCreditCards(); |
185 ASSERT_EQ(1uL, cards.size()); | 186 ASSERT_EQ(1uL, cards.size()); |
186 | 187 |
187 // Turn off the wallet autofill pref, the card should be gone as a side | 188 // Turn off the wallet autofill pref, the card should be gone as a side |
188 // effect of the wallet data type controller noticing. | 189 // effect of the wallet data type controller noticing. |
189 GetProfile(0)->GetPrefs()->SetBoolean( | 190 GetProfile(0)->GetPrefs()->SetBoolean( |
190 autofill::prefs::kAutofillWalletImportEnabled, false); | 191 autofill::prefs::kAutofillWalletImportEnabled, false); |
191 cards = pdm->GetCreditCards(); | 192 cards = pdm->GetCreditCards(); |
192 ASSERT_EQ(0uL, cards.size()); | 193 ASSERT_EQ(0uL, cards.size()); |
193 } | 194 } |
OLD | NEW |