| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 package org.chromium.chrome.browser.payments; | 5 package org.chromium.chrome.browser.payments; |
| 6 | 6 |
| 7 import android.test.suitebuilder.annotation.MediumTest; | 7 import android.support.test.filters.MediumTest; |
| 8 | 8 |
| 9 import org.chromium.base.test.util.Feature; | 9 import org.chromium.base.test.util.Feature; |
| 10 import org.chromium.chrome.R; | 10 import org.chromium.chrome.R; |
| 11 import org.chromium.chrome.browser.autofill.AutofillTestHelper; | 11 import org.chromium.chrome.browser.autofill.AutofillTestHelper; |
| 12 import org.chromium.chrome.browser.autofill.PersonalDataManager.AutofillProfile; | 12 import org.chromium.chrome.browser.autofill.PersonalDataManager.AutofillProfile; |
| 13 import org.chromium.chrome.browser.autofill.PersonalDataManager.CreditCard; | 13 import org.chromium.chrome.browser.autofill.PersonalDataManager.CreditCard; |
| 14 | 14 |
| 15 import java.util.concurrent.ExecutionException; | 15 import java.util.concurrent.ExecutionException; |
| 16 import java.util.concurrent.TimeoutException; | 16 import java.util.concurrent.TimeoutException; |
| 17 | 17 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 // Different queries are throttled for a period of time. | 55 // Different queries are throttled for a period of time. |
| 56 clickNodeAndWait("other-buy", mCanMakePaymentQueryResponded); | 56 clickNodeAndWait("other-buy", mCanMakePaymentQueryResponded); |
| 57 expectResultContains(new String[]{"Query quota exceeded"}); | 57 expectResultContains(new String[]{"Query quota exceeded"}); |
| 58 | 58 |
| 59 // Repeating the same query again does not count against the quota. | 59 // Repeating the same query again does not count against the quota. |
| 60 clickNodeAndWait("buy", mCanMakePaymentQueryResponded); | 60 clickNodeAndWait("buy", mCanMakePaymentQueryResponded); |
| 61 expectResultContains(new String[]{"true"}); | 61 expectResultContains(new String[]{"true"}); |
| 62 } | 62 } |
| 63 } | 63 } |
| OLD | NEW |