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

Side by Side Diff: components/autofill/browser/wallet/wallet_test_util.cc

Issue 15961007: Highlight fields we know to be invalid but have no way of locally checking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 6 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "components/autofill/browser/wallet/wallet_test_util.h" 5 #include "components/autofill/browser/wallet/wallet_test_util.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 base::DictionaryValue dict; 107 base::DictionaryValue dict;
108 dict.SetString("legal_document_id", "document_id"); 108 dict.SetString("legal_document_id", "document_id");
109 dict.SetString("display_name", "display_name"); 109 dict.SetString("display_name", "display_name");
110 return wallet::WalletItems::LegalDocument::CreateLegalDocument(dict); 110 return wallet::WalletItems::LegalDocument::CreateLegalDocument(dict);
111 } 111 }
112 112
113 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrument() { 113 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrument() {
114 return GetTestMaskedInstrumentWithId("default_instrument_id"); 114 return GetTestMaskedInstrumentWithId("default_instrument_id");
115 } 115 }
116 116
117 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrumentExpired() {
118 return GetTestMaskedInstrumentWithDetails(
119 "default_instrument_id",
120 GetTestAddress(),
121 WalletItems::MaskedInstrument::VISA,
122 WalletItems::MaskedInstrument::EXPIRED);
123 }
124
117 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrumentInvalid() { 125 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrumentInvalid() {
118 return GetTestMaskedInstrumentWithDetails( 126 return GetTestMaskedInstrumentWithDetails(
119 "default_instrument_id", 127 "default_instrument_id",
120 GetTestAddress(), 128 GetTestAddress(),
121 WalletItems::MaskedInstrument::VISA, 129 WalletItems::MaskedInstrument::VISA,
122 WalletItems::MaskedInstrument::DECLINED); 130 WalletItems::MaskedInstrument::DECLINED);
123 } 131 }
124 132
125 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrumentAmex() { 133 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrumentAmex() {
126 return GetTestMaskedInstrumentWithDetails( 134 return GetTestMaskedInstrumentWithDetails(
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 return scoped_ptr<WalletItems>( 179 return scoped_ptr<WalletItems>(
172 new wallet::WalletItems(std::vector<RequiredAction>(), 180 new wallet::WalletItems(std::vector<RequiredAction>(),
173 "google_transaction_id", 181 "google_transaction_id",
174 "default_instrument_id", 182 "default_instrument_id",
175 "default_address_id", 183 "default_address_id",
176 "obfuscated_gaia_id")); 184 "obfuscated_gaia_id"));
177 } 185 }
178 186
179 } // namespace wallet 187 } // namespace wallet
180 } // namespace autofill 188 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698