| 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/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/autofill/wallet/full_wallet.h" | 10 #include "components/autofill/browser/wallet/full_wallet.h" |
| 11 #include "chrome/browser/autofill/wallet/required_action.h" | 11 #include "components/autofill/browser/wallet/required_action.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 const char kFullWalletValidResponse[] = | 16 const char kFullWalletValidResponse[] = |
| 17 "{" | 17 "{" |
| 18 " \"expiration_month\":12," | 18 " \"expiration_month\":12," |
| 19 " \"expiration_year\":2012," | 19 " \"expiration_year\":2012," |
| 20 " \"iin\":\"iin\"," | 20 " \"iin\":\"iin\"," |
| 21 " \"rest\":\"rest\"," | 21 " \"rest\":\"rest\"," |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 billing_address.Pass(), | 456 billing_address.Pass(), |
| 457 shipping_address.Pass(), | 457 shipping_address.Pass(), |
| 458 required_actions); | 458 required_actions); |
| 459 EXPECT_EQ(full_wallet, *FullWallet::CreateFullWallet(*dict)); | 459 EXPECT_EQ(full_wallet, *FullWallet::CreateFullWallet(*dict)); |
| 460 } | 460 } |
| 461 | 461 |
| 462 // TODO(ahutter): Add tests for GetPan and GetCvn. | 462 // TODO(ahutter): Add tests for GetPan and GetCvn. |
| 463 | 463 |
| 464 } // namespace wallet | 464 } // namespace wallet |
| 465 } // namespace autofill | 465 } // namespace autofill |
| OLD | NEW |