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.content.DialogInterface; | 7 import android.content.DialogInterface; |
8 import android.test.suitebuilder.annotation.MediumTest; | 8 import android.support.test.filters.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.chrome.R; | 12 import org.chromium.chrome.R; |
13 import org.chromium.chrome.browser.autofill.AutofillTestHelper; | 13 import org.chromium.chrome.browser.autofill.AutofillTestHelper; |
14 import org.chromium.chrome.browser.autofill.PersonalDataManager.AutofillProfile; | 14 import org.chromium.chrome.browser.autofill.PersonalDataManager.AutofillProfile; |
15 import org.chromium.chrome.browser.autofill.PersonalDataManager.CreditCard; | 15 import org.chromium.chrome.browser.autofill.PersonalDataManager.CreditCard; |
16 | 16 |
17 import java.util.concurrent.ExecutionException; | 17 import java.util.concurrent.ExecutionException; |
18 import java.util.concurrent.TimeoutException; | 18 import java.util.concurrent.TimeoutException; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 for (int i = 0; i < PaymentRequestMetrics.REQUESTED_INFORMATION_MAX; ++i
) { | 74 for (int i = 0; i < PaymentRequestMetrics.REQUESTED_INFORMATION_MAX; ++i
) { |
75 assertEquals((i == (PaymentRequestMetrics.REQUESTED_INFORMATION_EMAI
L | 75 assertEquals((i == (PaymentRequestMetrics.REQUESTED_INFORMATION_EMAI
L |
76 | PaymentRequestMetrics.REQUESTED_INFORMATION_PHONE | 76 | PaymentRequestMetrics.REQUESTED_INFORMATION_PHONE |
77 | PaymentRequestMetrics.REQUESTED_INFORMATION_SHIPPING | 77 | PaymentRequestMetrics.REQUESTED_INFORMATION_SHIPPING |
78 | PaymentRequestMetrics.REQUESTED_INFORMATION_NAME) ? 1 : 0)
, | 78 | PaymentRequestMetrics.REQUESTED_INFORMATION_NAME) ? 1 : 0)
, |
79 RecordHistogram.getHistogramValueCountForTesting( | 79 RecordHistogram.getHistogramValueCountForTesting( |
80 "PaymentRequest.RequestedInformation", i)); | 80 "PaymentRequest.RequestedInformation", i)); |
81 } | 81 } |
82 } | 82 } |
83 } | 83 } |
OLD | NEW |