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

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

Snap for 6561534 from 4790a024 to mainline-release

Change-Id: I1bd456aaa79849f34ef4a75a1bc53098afa1d38b
parents 9a3bc831 4790a024
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