| 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 "chrome/browser/autofill/wallet/wallet_service_url.h" | 5 #include "components/autofill/browser/wallet/wallet_service_url.h" |
| 6 #include "googleurl/src/gurl.h" | 6 #include "googleurl/src/gurl.h" |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 | 8 |
| 9 namespace autofill { | 9 namespace autofill { |
| 10 namespace wallet { | 10 namespace wallet { |
| 11 | 11 |
| 12 TEST(WalletServiceUrl, CheckDefaultUrls) { | 12 TEST(WalletServiceUrl, CheckDefaultUrls) { |
| 13 ASSERT_EQ("https://wallet.google.com/online/v2/wallet/autocheckout/v1/" | 13 ASSERT_EQ("https://wallet.google.com/online/v2/wallet/autocheckout/v1/" |
| 14 "getWalletItemsJwtless", | 14 "getWalletItemsJwtless", |
| 15 GetGetWalletItemsUrl().spec()); | 15 GetGetWalletItemsUrl().spec()); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 31 ASSERT_EQ("https://wallet.google.com/online/v2/passiveauth", | 31 ASSERT_EQ("https://wallet.google.com/online/v2/passiveauth", |
| 32 GetPassiveAuthUrl().spec()); | 32 GetPassiveAuthUrl().spec()); |
| 33 ASSERT_EQ("https://wallet.google.com/online-secure/temporarydata/cvv?s7e=cvv", | 33 ASSERT_EQ("https://wallet.google.com/online-secure/temporarydata/cvv?s7e=cvv", |
| 34 GetEncryptionUrl().spec()); | 34 GetEncryptionUrl().spec()); |
| 35 ASSERT_EQ("https://wallet.google.com/dehEfe?s7e=cardNumber%3Bcvv", | 35 ASSERT_EQ("https://wallet.google.com/dehEfe?s7e=cardNumber%3Bcvv", |
| 36 GetEscrowUrl().spec()); | 36 GetEscrowUrl().spec()); |
| 37 } | 37 } |
| 38 | 38 |
| 39 } // namespace wallet | 39 } // namespace wallet |
| 40 } // namespace autofill | 40 } // namespace autofill |
| OLD | NEW |