| 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.SmallTest; | 7 import android.support.test.filters.SmallTest; |
| 8 | 8 |
| 9 import org.chromium.base.metrics.RecordHistogram; | 9 import org.chromium.base.metrics.RecordHistogram; |
| 10 import org.chromium.base.test.util.Feature; | 10 import org.chromium.base.test.util.Feature; |
| 11 import org.chromium.chrome.test.util.ApplicationData; | 11 import org.chromium.chrome.test.util.ApplicationData; |
| 12 import org.chromium.content.browser.test.NativeLibraryTestBase; | 12 import org.chromium.content.browser.test.NativeLibraryTestBase; |
| 13 | 13 |
| 14 /** | 14 /** |
| 15 * Tests for the PaymentRequestMetrics class. | 15 * Tests for the PaymentRequestMetrics class. |
| 16 */ | 16 */ |
| 17 public class PaymentRequestMetricsUnitTest extends NativeLibraryTestBase { | 17 public class PaymentRequestMetricsUnitTest extends NativeLibraryTestBase { |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 | PaymentRequestMetrics.REQUESTED_INFORMATION_NAME)); | 202 | PaymentRequestMetrics.REQUESTED_INFORMATION_NAME)); |
| 203 PaymentRequestMetrics.recordRequestedInformationHistogram(true, true, tr
ue, true); | 203 PaymentRequestMetrics.recordRequestedInformationHistogram(true, true, tr
ue, true); |
| 204 assertEquals(1, RecordHistogram.getHistogramValueCountForTesting( | 204 assertEquals(1, RecordHistogram.getHistogramValueCountForTesting( |
| 205 "PaymentRequest.RequestedInformation", | 205 "PaymentRequest.RequestedInformation", |
| 206 PaymentRequestMetrics.REQUESTED_INFORMATION_EMAIL | 206 PaymentRequestMetrics.REQUESTED_INFORMATION_EMAIL |
| 207 | PaymentRequestMetrics.REQUESTED_INFORMATION_PHONE | 207 | PaymentRequestMetrics.REQUESTED_INFORMATION_PHONE |
| 208 | PaymentRequestMetrics.REQUESTED_INFORMATION_SHIPPING | 208 | PaymentRequestMetrics.REQUESTED_INFORMATION_SHIPPING |
| 209 | PaymentRequestMetrics.REQUESTED_INFORMATION_NAME)); | 209 | PaymentRequestMetrics.REQUESTED_INFORMATION_NAME)); |
| 210 } | 210 } |
| 211 } | 211 } |
| OLD | NEW |