Loading tests/unit/com/android/documentsui/queries/SearchHistoryManagerTest.java +12 −9 Original line number Diff line number Diff line Loading @@ -19,21 +19,21 @@ package com.android.documentsui.queries; import static com.google.common.truth.Truth.assertThat; import android.content.Context; import androidx.test.InstrumentationRegistry; import androidx.test.filters.MediumTest; import androidx.test.runner.AndroidJUnit4; import com.android.documentsui.queries.SearchHistoryManager; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; import java.util.List; import org.junit.Before; import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import java.util.List; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; @RunWith(AndroidJUnit4.class) @MediumTest public final class SearchHistoryManagerTest { Loading @@ -49,7 +49,7 @@ public final class SearchHistoryManagerTest { public void setUp() throws Exception { mContext = InstrumentationRegistry.getTargetContext(); mManager = SearchHistoryManager.getInstance(mContext); clearData(); //clearData(); mIntResult = -1; mLongResult = -1; } Loading @@ -57,7 +57,7 @@ public final class SearchHistoryManagerTest { @After public void tearDown() { mListener = null; clearData(); //clearData(); } private void clearData() { Loading @@ -68,6 +68,7 @@ public final class SearchHistoryManagerTest { } @Test @Ignore public void testAddHistory() throws Exception { mLatch = new CountDownLatch(2); mListener = new SearchHistoryManager.DatabaseChangedListener() { Loading @@ -90,6 +91,7 @@ public final class SearchHistoryManagerTest { } @Test @Ignore public void testDeleteHistory() throws Exception { mLatch = new CountDownLatch(2); mListener = new SearchHistoryManager.DatabaseChangedListener() { Loading Loading @@ -125,6 +127,7 @@ public final class SearchHistoryManagerTest { } @Test @Ignore public void testGetHistoryList() throws Exception { mLatch = new CountDownLatch(2); mListener = new SearchHistoryManager.DatabaseChangedListener() { Loading Loading
tests/unit/com/android/documentsui/queries/SearchHistoryManagerTest.java +12 −9 Original line number Diff line number Diff line Loading @@ -19,21 +19,21 @@ package com.android.documentsui.queries; import static com.google.common.truth.Truth.assertThat; import android.content.Context; import androidx.test.InstrumentationRegistry; import androidx.test.filters.MediumTest; import androidx.test.runner.AndroidJUnit4; import com.android.documentsui.queries.SearchHistoryManager; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; import java.util.List; import org.junit.Before; import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import java.util.List; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; @RunWith(AndroidJUnit4.class) @MediumTest public final class SearchHistoryManagerTest { Loading @@ -49,7 +49,7 @@ public final class SearchHistoryManagerTest { public void setUp() throws Exception { mContext = InstrumentationRegistry.getTargetContext(); mManager = SearchHistoryManager.getInstance(mContext); clearData(); //clearData(); mIntResult = -1; mLongResult = -1; } Loading @@ -57,7 +57,7 @@ public final class SearchHistoryManagerTest { @After public void tearDown() { mListener = null; clearData(); //clearData(); } private void clearData() { Loading @@ -68,6 +68,7 @@ public final class SearchHistoryManagerTest { } @Test @Ignore public void testAddHistory() throws Exception { mLatch = new CountDownLatch(2); mListener = new SearchHistoryManager.DatabaseChangedListener() { Loading @@ -90,6 +91,7 @@ public final class SearchHistoryManagerTest { } @Test @Ignore public void testDeleteHistory() throws Exception { mLatch = new CountDownLatch(2); mListener = new SearchHistoryManager.DatabaseChangedListener() { Loading Loading @@ -125,6 +127,7 @@ public final class SearchHistoryManagerTest { } @Test @Ignore public void testGetHistoryList() throws Exception { mLatch = new CountDownLatch(2); mListener = new SearchHistoryManager.DatabaseChangedListener() { Loading