Revert "Add entry and cursor location in GetSuggestionRequest"
Revert submission 17128079-suggestionentry Reason for revert: test monitor determined it broke tests: b/223859070 Reverted Changes: I838896e2f:Add entry and cursor location in GetSuggestionRequ... Ic9f5dd35b:Add cursorLocation and entry to GetSuggestRequest Change-Id: I8a15f61c5ddb37b26d3e06de25f0d5b5b5c89abc
This commit is contained in:
+1
-1
@@ -163,7 +163,7 @@ public class SimpleWidgetsSearchAlgorithmTest {
|
||||
mCameraContentEntry, mClockHeaderEntry, mClockContentEntry))
|
||||
.when(mDataProvider)
|
||||
.getAllWidgets();
|
||||
mSimpleWidgetsSearchAlgorithm.doSearch("Ca", 2, mSearchCallback);
|
||||
mSimpleWidgetsSearchAlgorithm.doSearch("Ca", mSearchCallback);
|
||||
MAIN_EXECUTOR.submit(() -> { }).get();
|
||||
verify(mSearchCallback).onSearchResult(
|
||||
matches("Ca"), argThat(a -> a != null && !a.isEmpty()));
|
||||
|
||||
+1
-1
@@ -86,7 +86,7 @@ public class WidgetsSearchBarControllerTest {
|
||||
public void afterTextChanged_shouldDoSearch() {
|
||||
mEditText.setText("abc");
|
||||
|
||||
verify(mSearchAlgorithm).doSearch(eq("abc"), 3, any());
|
||||
verify(mSearchAlgorithm).doSearch(eq("abc"), any());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user