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

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

Issue 100743006: Fix DCHECK() when updating instruments with no phone number. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/content/browser/wallet/wallet_test_util.h" 5 #include "components/autofill/content/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/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 } 136 }
137 137
138 scoped_ptr<Instrument> GetTestExpirationDateChangeInstrument() { 138 scoped_ptr<Instrument> GetTestExpirationDateChangeInstrument() {
139 scoped_ptr<Instrument> instrument(new Instrument(base::string16(), 139 scoped_ptr<Instrument> instrument(new Instrument(base::string16(),
140 ASCIIToUTF16("123"), 140 ASCIIToUTF16("123"),
141 12, 141 12,
142 FutureYear(), 142 FutureYear(),
143 Instrument::UNKNOWN, 143 Instrument::UNKNOWN,
144 scoped_ptr<Address>())); 144 scoped_ptr<Address>()));
145 instrument->set_object_id("instrument_id"); 145 instrument->set_object_id("instrument_id");
146 instrument->set_expiration_differs_from_server(true);
146 return instrument.Pass(); 147 return instrument.Pass();
147 } 148 }
148 149
149 scoped_ptr<Instrument> GetTestAddressNameChangeInstrument() { 150 scoped_ptr<Instrument> GetTestAddressNameChangeInstrument() {
150 scoped_ptr<Instrument> instrument(new Instrument(base::string16(), 151 scoped_ptr<Instrument> instrument(new Instrument(base::string16(),
151 ASCIIToUTF16("123"), 152 ASCIIToUTF16("123"),
152 0, 153 0,
153 0, 154 0,
154 Instrument::UNKNOWN, 155 Instrument::UNKNOWN,
155 GetTestAddress())); 156 GetTestAddress()));
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 return GetTestWalletItems(std::vector<RequiredAction>(), 290 return GetTestWalletItems(std::vector<RequiredAction>(),
290 default_instrument_id, 291 default_instrument_id,
291 default_address_id, 292 default_address_id,
292 amex_permission, 293 amex_permission,
293 users, 294 users,
294 0); 295 0);
295 } 296 }
296 297
297 } // namespace wallet 298 } // namespace wallet
298 } // namespace autofill 299 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698