| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "components/autofill/common/autofill_switches.h" | |
| 7 #include "components/autofill/content/browser/wallet/wallet_service_url.h" | 6 #include "components/autofill/content/browser/wallet/wallet_service_url.h" |
| 7 #include "components/autofill/core/common/autofill_switches.h" |
| 8 #include "googleurl/src/gurl.h" | 8 #include "googleurl/src/gurl.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| 11 namespace autofill { | 11 namespace autofill { |
| 12 namespace wallet { | 12 namespace wallet { |
| 13 | 13 |
| 14 TEST(WalletServiceUrl, CheckDefaultUrls) { | 14 TEST(WalletServiceUrl, CheckDefaultUrls) { |
| 15 EXPECT_EQ("https://payments-form-dogfood.sandbox.google.com/online/v2/wallet/" | 15 EXPECT_EQ("https://payments-form-dogfood.sandbox.google.com/online/v2/wallet/" |
| 16 "autocheckout/v1/getWalletItemsJwtless", | 16 "autocheckout/v1/getWalletItemsJwtless", |
| 17 GetGetWalletItemsUrl().spec()); | 17 GetGetWalletItemsUrl().spec()); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 const GURL prod_get_items_url = GetGetWalletItemsUrl(); | 57 const GURL prod_get_items_url = GetGetWalletItemsUrl(); |
| 58 command_line->AppendSwitchASCII(switches::kWalletServiceUrl, "http://goo.gl"); | 58 command_line->AppendSwitchASCII(switches::kWalletServiceUrl, "http://goo.gl"); |
| 59 EXPECT_FALSE(IsUsingProd()); | 59 EXPECT_FALSE(IsUsingProd()); |
| 60 | 60 |
| 61 ASSERT_NE(prod_get_items_url, GetGetWalletItemsUrl()); | 61 ASSERT_NE(prod_get_items_url, GetGetWalletItemsUrl()); |
| 62 } | 62 } |
| 63 | 63 |
| 64 } // namespace wallet | 64 } // namespace wallet |
| 65 } // namespace autofill | 65 } // namespace autofill |
| OLD | NEW |