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

Side by Side Diff: chrome/browser/autofill/autofill_manager_unittest.cc

Issue 3071003: AutoFill: Display a right-aligned generic CC icon in the suggestions popup for (Closed)
Patch Set: Rebase. Created 10 years, 4 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
« no previous file with comments | « chrome/browser/autofill/autofill_manager.cc ('k') | chrome/browser/browser_resources.grd » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <vector> 5 #include <vector>
6 6
7 #include "base/ref_counted.h" 7 #include "base/ref_counted.h"
8 #include "base/scoped_ptr.h" 8 #include "base/scoped_ptr.h"
9 #include "base/scoped_vector.h" 9 #include "base/scoped_vector.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 10 matching lines...) Expand all
21 #include "chrome/common/ipc_test_sink.h" 21 #include "chrome/common/ipc_test_sink.h"
22 #include "chrome/common/pref_names.h" 22 #include "chrome/common/pref_names.h"
23 #include "chrome/common/render_messages.h" 23 #include "chrome/common/render_messages.h"
24 #include "googleurl/src/gurl.h" 24 #include "googleurl/src/gurl.h"
25 #include "testing/gtest/include/gtest/gtest.h" 25 #include "testing/gtest/include/gtest/gtest.h"
26 #include "webkit/glue/form_data.h" 26 #include "webkit/glue/form_data.h"
27 #include "webkit/glue/form_field.h" 27 #include "webkit/glue/form_field.h"
28 28
29 using webkit_glue::FormData; 29 using webkit_glue::FormData;
30 30
31 typedef Tuple4<int, 31 typedef Tuple5<int,
32 std::vector<string16>,
32 std::vector<string16>, 33 std::vector<string16>,
33 std::vector<string16>, 34 std::vector<string16>,
34 std::vector<int> > AutoFillParam; 35 std::vector<int> > AutoFillParam;
35 36
36 class TestPersonalDataManager : public PersonalDataManager { 37 class TestPersonalDataManager : public PersonalDataManager {
37 public: 38 public:
38 TestPersonalDataManager() { 39 TestPersonalDataManager() {
39 CreateTestAutoFillProfiles(&web_profiles_); 40 CreateTestAutoFillProfiles(&web_profiles_);
40 CreateTestCreditCards(&credit_cards_); 41 CreateTestCreditCards(&credit_cards_);
41 } 42 }
(...skipping 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after
1204 #else 1205 #else
1205 ASSERT_FALSE(profile()->GetPrefs()->GetBoolean( 1206 ASSERT_FALSE(profile()->GetPrefs()->GetBoolean(
1206 prefs::kAutoFillAuxiliaryProfilesEnabled)); 1207 prefs::kAutoFillAuxiliaryProfilesEnabled));
1207 profile()->GetPrefs()->SetBoolean( 1208 profile()->GetPrefs()->SetBoolean(
1208 prefs::kAutoFillAuxiliaryProfilesEnabled, true); 1209 prefs::kAutoFillAuxiliaryProfilesEnabled, true);
1209 profile()->GetPrefs()->ClearPref(prefs::kAutoFillAuxiliaryProfilesEnabled); 1210 profile()->GetPrefs()->ClearPref(prefs::kAutoFillAuxiliaryProfilesEnabled);
1210 ASSERT_FALSE(profile()->GetPrefs()->GetBoolean( 1211 ASSERT_FALSE(profile()->GetPrefs()->GetBoolean(
1211 prefs::kAutoFillAuxiliaryProfilesEnabled)); 1212 prefs::kAutoFillAuxiliaryProfilesEnabled));
1212 #endif 1213 #endif
1213 } 1214 }
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_manager.cc ('k') | chrome/browser/browser_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698