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

Unified Diff: components/autofill/browser/wallet/wallet_client_unittest.cc

Issue 14836006: Deprecate Carts in Wallet code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/autofill/browser/wallet/wallet_client.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/browser/wallet/wallet_client_unittest.cc
diff --git a/components/autofill/browser/wallet/wallet_client_unittest.cc b/components/autofill/browser/wallet/wallet_client_unittest.cc
index 8ceb029a076e83412a535ccbd3891197dd40fc04..9c5e66742dd83cf3e8402ecc0453b4b52201a43a 100644
--- a/components/autofill/browser/wallet/wallet_client_unittest.cc
+++ b/components/autofill/browser/wallet/wallet_client_unittest.cc
@@ -11,7 +11,6 @@
#include "base/values.h"
#include "chrome/test/base/testing_profile.h"
#include "components/autofill/browser/autofill_metrics.h"
-#include "components/autofill/browser/wallet/cart.h"
#include "components/autofill/browser/wallet/full_wallet.h"
#include "components/autofill/browser/wallet/instrument.h"
#include "components/autofill/browser/wallet/wallet_client.h"
@@ -294,11 +293,6 @@ const char kAuthenticateInstrumentValidRequest[] =
const char kGetFullWalletValidRequest[] =
"{"
- "\"cart\":"
- "{"
- "\"currency_code\":\"currency_code\","
- "\"total_price\":\"total_price\""
- "},"
"\"encrypted_otp\":\"encrypted_one_time_pad\","
"\"feature\":\"REQUEST_AUTOCOMPLETE\","
"\"google_transaction_id\":\"google_transaction_id\","
@@ -314,11 +308,6 @@ const char kGetFullWalletValidRequest[] =
const char kGetFullWalletWithRiskCapabilitesValidRequest[] =
"{"
- "\"cart\":"
- "{"
- "\"currency_code\":\"currency_code\","
- "\"total_price\":\"total_price\""
- "},"
"\"encrypted_otp\":\"encrypted_one_time_pad\","
"\"feature\":\"REQUEST_AUTOCOMPLETE\","
"\"google_transaction_id\":\"google_transaction_id\","
@@ -844,12 +833,10 @@ TEST_F(WalletClientTest, GetFullWalletSuccess) {
delegate_.ExpectLogWalletApiCallDuration(AutofillMetrics::GET_FULL_WALLET, 1);
delegate_.ExpectBaselineMetrics(HAS_ESCROW_REQUEST, HAS_WALLET_REQUEST);
- Cart cart("total_price", "currency_code");
WalletClient::FullWalletRequest full_wallet_request(
"instrument_id",
"shipping_address_id",
GURL(kMerchantUrl),
- cart,
"google_transaction_id",
std::vector<WalletClient::RiskCapability>());
wallet_client_->GetFullWallet(full_wallet_request);
@@ -869,12 +856,10 @@ TEST_F(WalletClientTest, GetFullWalletWithRiskCapabilitesSuccess) {
std::vector<WalletClient::RiskCapability> risk_capabilities;
risk_capabilities.push_back(WalletClient::VERIFY_CVC);
- Cart cart("total_price", "currency_code");
WalletClient::FullWalletRequest full_wallet_request(
"instrument_id",
"shipping_address_id",
GURL(kMerchantUrl),
- cart,
"google_transaction_id",
risk_capabilities);
wallet_client_->GetFullWallet(full_wallet_request);
@@ -895,12 +880,10 @@ TEST_F(WalletClientTest, GetFullWalletEncryptionDown) {
delegate_.ExpectBaselineMetrics(HAS_ESCROW_REQUEST, NO_WALLET_REQUEST);
delegate_.ExpectWalletErrorMetric(AutofillMetrics::WALLET_NETWORK_ERROR);
- Cart cart("total_price", "currency_code");
WalletClient::FullWalletRequest full_wallet_request(
"instrument_id",
"shipping_address_id",
GURL(kMerchantUrl),
- cart,
"google_transaction_id",
std::vector<WalletClient::RiskCapability>());
wallet_client_->GetFullWallet(full_wallet_request);
@@ -916,12 +899,10 @@ TEST_F(WalletClientTest, GetFullWalletEncryptionMalformed) {
delegate_.ExpectBaselineMetrics(HAS_ESCROW_REQUEST, NO_WALLET_REQUEST);
delegate_.ExpectWalletErrorMetric(AutofillMetrics::WALLET_MALFORMED_RESPONSE);
- Cart cart("total_price", "currency_code");
WalletClient::FullWalletRequest full_wallet_request(
"instrument_id",
"shipping_address_id",
GURL(kMerchantUrl),
- cart,
"google_transaction_id",
std::vector<WalletClient::RiskCapability>());
wallet_client_->GetFullWallet(full_wallet_request);
@@ -938,12 +919,10 @@ TEST_F(WalletClientTest, GetFullWalletMalformedResponse) {
delegate_.ExpectBaselineMetrics(HAS_ESCROW_REQUEST, HAS_WALLET_REQUEST);
delegate_.ExpectWalletErrorMetric(AutofillMetrics::WALLET_MALFORMED_RESPONSE);
- Cart cart("total_price", "currency_code");
WalletClient::FullWalletRequest full_wallet_request(
"instrument_id",
"shipping_address_id",
GURL(kMerchantUrl),
- cart,
"google_transaction_id",
std::vector<WalletClient::RiskCapability>());
wallet_client_->GetFullWallet(full_wallet_request);
« no previous file with comments | « components/autofill/browser/wallet/wallet_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698