Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee00d713 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 6564541 from 512d0834 to sc-release

Change-Id: I504d1c00324842193688eab22e3d7bd032904771
parents b3e205bb 512d0834
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -412,12 +412,16 @@ public final class SearchViewManagerTest {
        mSearchViewManager.onClick(null);
        mSearchChipViewManager.mCheckedChipItems = getFakeSearchChipDataList();

        final long startTime = LocalDate.now().minusDays(7).atStartOfDay(ZoneId.systemDefault())
                .toInstant().toEpochMilli();

        final Bundle queryArgs = mSearchViewManager.buildQueryArgs();
        assertFalse(queryArgs.isEmpty());

        final long endTime  = LocalDate.now().minusDays(7).atStartOfDay(ZoneId.systemDefault())
                .toInstant().toEpochMilli();
        final long weekAgoTime = queryArgs.getLong(QUERY_ARG_LAST_MODIFIED_AFTER);
        assertEquals(LocalDate.now().minusDays(7).atStartOfDay(ZoneId.systemDefault())
                .toInstant().toEpochMilli(), weekAgoTime);
        assertTrue(weekAgoTime == endTime || weekAgoTime == startTime);
    }

    @Test