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

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

Issue 2583933003: Replace deprecated Android java test annotations (Closed)
Patch Set: Add presubmit checks Created 4 years 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.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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698