| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "chrome/browser/ui/views/payments/payment_request_browsertest_base.h" | 9 #include "chrome/browser/ui/views/payments/payment_request_browsertest_base.h" |
| 10 #include "components/autofill/core/browser/autofill_test_utils.h" | 10 #include "components/autofill/core/browser/autofill_test_utils.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 const autofill::CreditCard card = autofill::test::GetCreditCard2(); // Amex. | 59 const autofill::CreditCard card = autofill::test::GetCreditCard2(); // Amex. |
| 60 AddCreditCard(card); | 60 AddCreditCard(card); |
| 61 | 61 |
| 62 CallCanMakePayment(); | 62 CallCanMakePayment(); |
| 63 | 63 |
| 64 ExpectBodyContains(std::vector<base::string16>{base::ASCIIToUTF16("false")}); | 64 ExpectBodyContains(std::vector<base::string16>{base::ASCIIToUTF16("false")}); |
| 65 } | 65 } |
| 66 | 66 |
| 67 // Visa is required, and user doesn't have a visa instrument and the user is in | 67 // Visa is required, and user doesn't have a visa instrument and the user is in |
| 68 // incognito mode. | 68 // incognito mode. |
| 69 // Test is flaky. crbug.com/705271 |
| 69 IN_PROC_BROWSER_TEST_F(PaymentRequestCanMakePaymentQueryTest, | 70 IN_PROC_BROWSER_TEST_F(PaymentRequestCanMakePaymentQueryTest, |
| 70 CanMakePayment_NotSupported_Incognito) { | 71 DISABLED_CanMakePayment_NotSupported_Incognito) { |
| 71 SetIncognitoForTesting(); | 72 SetIncognitoForTesting(); |
| 72 | 73 |
| 73 const autofill::CreditCard card = autofill::test::GetCreditCard2(); // Amex. | 74 const autofill::CreditCard card = autofill::test::GetCreditCard2(); // Amex. |
| 74 AddCreditCard(card); | 75 AddCreditCard(card); |
| 75 | 76 |
| 76 CallCanMakePayment(); | 77 CallCanMakePayment(); |
| 77 | 78 |
| 78 // Returns true because the user is in incognito mode, even though it should | 79 // Returns true because the user is in incognito mode, even though it should |
| 79 // return false in a normal profile. | 80 // return false in a normal profile. |
| 80 ExpectBodyContains(std::vector<base::string16>{base::ASCIIToUTF16("true")}); | 81 ExpectBodyContains(std::vector<base::string16>{base::ASCIIToUTF16("true")}); |
| 81 } | 82 } |
| 82 | 83 |
| 83 } // namespace payments | 84 } // namespace payments |
| OLD | NEW |