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

Side by Side Diff: chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestEmailTest.java

Issue 2334133003: Mark flaky chrome_public tests with @RetryOnFailure Batch 4 (Closed)
Patch Set: Created 4 years, 3 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
OLDNEW
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.content.DialogInterface; 7 import android.content.DialogInterface;
8 import android.test.suitebuilder.annotation.MediumTest; 8 import android.test.suitebuilder.annotation.MediumTest;
9 9
10 import org.chromium.base.metrics.RecordHistogram; 10 import org.chromium.base.metrics.RecordHistogram;
11 import org.chromium.base.test.util.Feature; 11 import org.chromium.base.test.util.Feature;
12 import org.chromium.base.test.util.RetryOnFailure;
12 import org.chromium.chrome.R; 13 import org.chromium.chrome.R;
13 import org.chromium.chrome.browser.autofill.AutofillTestHelper; 14 import org.chromium.chrome.browser.autofill.AutofillTestHelper;
14 import org.chromium.chrome.browser.autofill.PersonalDataManager.AutofillProfile; 15 import org.chromium.chrome.browser.autofill.PersonalDataManager.AutofillProfile;
15 import org.chromium.chrome.browser.autofill.PersonalDataManager.CreditCard; 16 import org.chromium.chrome.browser.autofill.PersonalDataManager.CreditCard;
16 17
17 import java.util.concurrent.ExecutionException; 18 import java.util.concurrent.ExecutionException;
18 import java.util.concurrent.TimeoutException; 19 import java.util.concurrent.TimeoutException;
19 20
20 /** 21 /**
21 * A payment integration test for a merchant that requests email address. 22 * A payment integration test for a merchant that requests email address.
22 */ 23 */
24 @RetryOnFailure
23 public class PaymentRequestEmailTest extends PaymentRequestTestBase { 25 public class PaymentRequestEmailTest extends PaymentRequestTestBase {
24 public PaymentRequestEmailTest() { 26 public PaymentRequestEmailTest() {
25 // This merchant request an email address. 27 // This merchant request an email address.
26 super("payment_request_email_test.html"); 28 super("payment_request_email_test.html");
27 } 29 }
28 30
29 @Override 31 @Override
30 public void onMainActivityStarted() 32 public void onMainActivityStarted()
31 throws InterruptedException, ExecutionException, TimeoutException { 33 throws InterruptedException, ExecutionException, TimeoutException {
32 AutofillTestHelper helper = new AutofillTestHelper(); 34 AutofillTestHelper helper = new AutofillTestHelper();
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 triggerUIAndWait(mReadyToPay); 95 triggerUIAndWait(mReadyToPay);
94 96
95 // Make sure that only the appropriate enum value was logged. 97 // Make sure that only the appropriate enum value was logged.
96 for (int i = 0; i < PaymentRequestMetrics.REQUESTED_INFORMATION_MAX; ++i ) { 98 for (int i = 0; i < PaymentRequestMetrics.REQUESTED_INFORMATION_MAX; ++i ) {
97 assertEquals((i == PaymentRequestMetrics.REQUESTED_INFORMATION_EMAIL ? 1 : 0), 99 assertEquals((i == PaymentRequestMetrics.REQUESTED_INFORMATION_EMAIL ? 1 : 0),
98 RecordHistogram.getHistogramValueCountForTesting( 100 RecordHistogram.getHistogramValueCountForTesting(
99 "PaymentRequest.RequestedInformation", i)); 101 "PaymentRequest.RequestedInformation", i));
100 } 102 }
101 } 103 }
102 } 104 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698