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

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

Issue 11773037: Implementation of sensitive card information escrowing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing Ilya's final comments 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 | « chrome/browser/autofill/wallet/wallet_service_url.cc ('k') | chrome/common/chrome_switches.cc » ('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 "chrome/browser/autofill/wallet/wallet_service_url.h" 5 #include "chrome/browser/autofill/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 wallet { 9 namespace wallet {
10 10
11 TEST(WalletServiceUrl, CheckDefaultUrls) { 11 TEST(WalletServiceUrl, CheckDefaultUrls) {
12 ASSERT_EQ("https://wallet.google.com/online/v2/wallet/autocheckout/" 12 ASSERT_EQ("https://wallet.google.com/online/v2/wallet/autocheckout/"
13 "getWalletItemsJwtless", 13 "getWalletItemsJwtless",
14 GetGetWalletItemsUrl().spec()); 14 GetGetWalletItemsUrl().spec());
15 ASSERT_EQ("https://wallet.google.com/online/v2/wallet/autocheckout/" 15 ASSERT_EQ("https://wallet.google.com/online/v2/wallet/autocheckout/"
16 "getFullWalletJwtless", 16 "getFullWalletJwtless",
17 GetGetFullWalletUrl().spec()); 17 GetGetFullWalletUrl().spec());
18 ASSERT_EQ("https://wallet.google.com/online/v2/wallet/autocheckout/" 18 ASSERT_EQ("https://wallet.google.com/online/v2/wallet/autocheckout/"
19 "acceptLegalDocuments", 19 "acceptLegalDocuments",
20 GetAcceptLegalDocumentsUrl().spec()); 20 GetAcceptLegalDocumentsUrl().spec());
21 ASSERT_EQ("https://wallet.google.com/online/v2/wallet/autocheckout/" 21 ASSERT_EQ("https://wallet.google.com/online/v2/wallet/autocheckout/"
22 "reportStatus", 22 "reportStatus",
23 GetSendStatusUrl().spec()); 23 GetSendStatusUrl().spec());
24 ASSERT_EQ("https://wallet.google.com/online/v2/wallet/autocheckout/" 24 ASSERT_EQ("https://wallet.google.com/online/v2/wallet/autocheckout/"
25 "saveToWallet", 25 "saveToWallet",
26 GetSaveToWalletUrl().spec()); 26 GetSaveToWalletUrl().spec());
27 ASSERT_EQ("https://wallet.google.com/online/v2/passiveauth", 27 ASSERT_EQ("https://wallet.google.com/online/v2/passiveauth",
28 GetPassiveAuthUrl().spec()); 28 GetPassiveAuthUrl().spec());
29 ASSERT_EQ("https://wallet.google.com/online-secure/temporarydata/cvv?s7e=cvv", 29 ASSERT_EQ("https://wallet.google.com/online-secure/temporarydata/cvv?s7e=cvv",
30 GetSecureUrl().spec()); 30 GetEncryptionUrl().spec());
31 ASSERT_EQ("https://wallet.google.com/dehEfe?s7e=cardNumber%3Bcvv",
32 GetEscrowUrl().spec());
31 } 33 }
32 34
33 } // namespace wallet 35 } // namespace wallet
34 36
OLDNEW
« no previous file with comments | « chrome/browser/autofill/wallet/wallet_service_url.cc ('k') | chrome/common/chrome_switches.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698