| 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.test.util.Feature; | 10 import org.chromium.base.test.util.Feature; |
| 11 import org.chromium.chrome.R; | 11 import org.chromium.chrome.R; |
| 12 import org.chromium.chrome.browser.autofill.AutofillTestHelper; | 12 import org.chromium.chrome.browser.autofill.AutofillTestHelper; |
| 13 import org.chromium.chrome.browser.autofill.PersonalDataManager.AutofillProfile; | 13 import org.chromium.chrome.browser.autofill.PersonalDataManager.AutofillProfile; |
| 14 import org.chromium.chrome.browser.autofill.PersonalDataManager.CreditCard; | 14 import org.chromium.chrome.browser.autofill.PersonalDataManager.CreditCard; |
| 15 | 15 |
| 16 import java.util.concurrent.ExecutionException; | 16 import java.util.concurrent.ExecutionException; |
| 17 import java.util.concurrent.TimeoutException; | 17 import java.util.concurrent.TimeoutException; |
| 18 | 18 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 // Make sure the use counts were incremented and the use dates were set
to the current time. | 67 // Make sure the use counts were incremented and the use dates were set
to the current time. |
| 68 assertEquals(21, mHelper.getProfileUseCountForTesting(mBillingAddressId)
); | 68 assertEquals(21, mHelper.getProfileUseCountForTesting(mBillingAddressId)
); |
| 69 assertTrue(timeBeforeRecord <= mHelper.getProfileUseDateForTesting(mBill
ingAddressId)); | 69 assertTrue(timeBeforeRecord <= mHelper.getProfileUseDateForTesting(mBill
ingAddressId)); |
| 70 assertTrue(timeAfterRecord >= mHelper.getProfileUseDateForTesting(mBilli
ngAddressId)); | 70 assertTrue(timeAfterRecord >= mHelper.getProfileUseDateForTesting(mBilli
ngAddressId)); |
| 71 assertEquals(2, mHelper.getCreditCardUseCountForTesting(mCreditCardId)); | 71 assertEquals(2, mHelper.getCreditCardUseCountForTesting(mCreditCardId)); |
| 72 assertTrue(timeBeforeRecord <= mHelper.getCreditCardUseDateForTesting(mC
reditCardId)); | 72 assertTrue(timeBeforeRecord <= mHelper.getCreditCardUseDateForTesting(mC
reditCardId)); |
| 73 assertTrue(timeAfterRecord >= mHelper.getCreditCardUseDateForTesting(mCr
editCardId)); | 73 assertTrue(timeAfterRecord >= mHelper.getCreditCardUseDateForTesting(mCr
editCardId)); |
| 74 } | 74 } |
| 75 } | 75 } |
| OLD | NEW |