| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/autofill/wallet/wallet_service_url.h" | |
| 6 #include "googleurl/src/gurl.h" | |
| 7 #include "testing/gtest/include/gtest/gtest.h" | |
| 8 | |
| 9 namespace autofill { | |
| 10 namespace wallet { | |
| 11 | |
| 12 TEST(WalletServiceUrl, CheckDefaultUrls) { | |
| 13 ASSERT_EQ("https://wallet.google.com/online/v2/wallet/autocheckout/v1/" | |
| 14 "getWalletItemsJwtless", | |
| 15 GetGetWalletItemsUrl().spec()); | |
| 16 ASSERT_EQ("https://wallet.google.com/online/v2/wallet/autocheckout/v1/" | |
| 17 "getFullWalletJwtless", | |
| 18 GetGetFullWalletUrl().spec()); | |
| 19 ASSERT_EQ("https://wallet.google.com/online/v2/wallet/autocheckout/v1/" | |
| 20 "acceptLegalDocument", | |
| 21 GetAcceptLegalDocumentsUrl().spec()); | |
| 22 ASSERT_EQ("https://wallet.google.com/online/v2/wallet/autocheckout/v1/" | |
| 23 "authenticateInstrument", | |
| 24 GetAuthenticateInstrumentUrl().spec()); | |
| 25 ASSERT_EQ("https://wallet.google.com/online/v2/wallet/autocheckout/v1/" | |
| 26 "reportStatus", | |
| 27 GetSendStatusUrl().spec()); | |
| 28 ASSERT_EQ("https://wallet.google.com/online/v2/wallet/autocheckout/v1/" | |
| 29 "saveToWallet", | |
| 30 GetSaveToWalletUrl().spec()); | |
| 31 ASSERT_EQ("https://wallet.google.com/online/v2/passiveauth", | |
| 32 GetPassiveAuthUrl().spec()); | |
| 33 ASSERT_EQ("https://wallet.google.com/online-secure/temporarydata/cvv?s7e=cvv", | |
| 34 GetEncryptionUrl().spec()); | |
| 35 ASSERT_EQ("https://wallet.google.com/dehEfe?s7e=cardNumber%3Bcvv", | |
| 36 GetEscrowUrl().spec()); | |
| 37 } | |
| 38 | |
| 39 } // namespace wallet | |
| 40 } // namespace autofill | |
| OLD | NEW |