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

Side by Side Diff: chrome/browser/autofill/wallet/full_wallet_unittest.cc

Issue 12045057: [autofill] Adding the PASSIVE_GAIA_AUTH required action gotten when interacting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/autofill/wallet/required_action.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/json/json_reader.h" 5 #include "base/json/json_reader.h"
6 #include "base/logging.h" 6 #include "base/logging.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/autofill/wallet/full_wallet.h" 9 #include "chrome/browser/autofill/wallet/full_wallet.h"
10 #include "chrome/browser/autofill/wallet/required_action.h" 10 #include "chrome/browser/autofill/wallet/required_action.h"
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 " ]" 283 " ]"
284 "}"; 284 "}";
285 285
286 const char kFullWalletWithInvalidRequiredActions[] = 286 const char kFullWalletWithInvalidRequiredActions[] =
287 "{" 287 "{"
288 " \"required_action\":" 288 " \"required_action\":"
289 " [" 289 " ["
290 " \" setup_wallet\"," 290 " \" setup_wallet\","
291 " \"AcCePt_ToS \"," 291 " \"AcCePt_ToS \","
292 " \" \\tGAIA_auth \\n\\r\"," 292 " \" \\tGAIA_auth \\n\\r\","
293 " \"PASSIVE_GAIA_AUTH\","
293 " \" 忍者の正体 \"" 294 " \" 忍者の正体 \""
294 " ]" 295 " ]"
295 "}"; 296 "}";
296 297
297 const char kFullWalletMalformedBillingAddress[] = 298 const char kFullWalletMalformedBillingAddress[] =
298 "{" 299 "{"
299 " \"expiration_month\":12," 300 " \"expiration_month\":12,"
300 " \"expiration_year\":2012," 301 " \"expiration_year\":2012,"
301 " \"iin\":\"iin\"," 302 " \"iin\":\"iin\","
302 " \"rest\":\"rest\"," 303 " \"rest\":\"rest\","
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 "iin", 449 "iin",
449 "rest", 450 "rest",
450 billing_address.Pass(), 451 billing_address.Pass(),
451 shipping_address.Pass(), 452 shipping_address.Pass(),
452 required_actions); 453 required_actions);
453 ASSERT_EQ(full_wallet, *FullWallet::CreateFullWallet(*dict)); 454 ASSERT_EQ(full_wallet, *FullWallet::CreateFullWallet(*dict));
454 } 455 }
455 456
456 } // namespace wallet 457 } // namespace wallet
457 458
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autofill/wallet/required_action.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698