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:
Sam Gilbert
2022-03-10 19:48:31 +00:00
parent e395453bd9
commit 355bd482c8
7 changed files with 10 additions and 14 deletions
@@ -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()));
@@ -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