Merge "Extending SearchFeatureProvider API to provide timeout" into oc-mr1-dev

This commit is contained in:
TreeHugger Robot
2017-08-24 04:11:48 +00:00
committed by Android (Google) Code Review
3 changed files with 11 additions and 4 deletions

View File

@@ -83,6 +83,8 @@ public class SearchResultsAdapterTest {
mLoaderClassName = DatabaseResultLoader.class.getName();
when(mFragment.getContext()).thenReturn(mMockContext);
when(mMockContext.getApplicationContext()).thenReturn(mContext);
when(mSearchFeatureProvider.smartSearchRankingTimeoutMs(any(Context.class)))
.thenReturn(300L);
mAdapter = new SearchResultsAdapter(mFragment, mSearchFeatureProvider);
}