| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |