#include "components/omnibox/browser/fake_autocomplete_controller.h"
#include <memory>
#include <string>
#include <vector>
#include "base/memory/raw_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/task_environment.h"
#include "components/omnibox/browser/autocomplete_controller.h"
#include "components/omnibox/browser/autocomplete_match.h"
#include "components/omnibox/browser/autocomplete_match_type.h"
#include "components/omnibox/browser/fake_autocomplete_controller.h"
#include "components/omnibox/browser/fake_autocomplete_provider.h"
#include "components/omnibox/browser/fake_autocomplete_provider_client.h"
#include "components/omnibox/browser/omnibox_prefs.h"
#include "components/omnibox/browser/test_scheme_classifier.h"
#include "components/prefs/pref_registry_simple.h"
#include "testing/gtest/include/gtest/gtest.h"
void FakeAutocompleteControllerObserver::OnResultChanged(
AutocompleteController* controller,
bool default_match_changed) { … }
FakeAutocompleteController::FakeAutocompleteController(
raw_ptr<base::test::SingleThreadTaskEnvironment> task_environment)
: … { … }
FakeAutocompleteController::~FakeAutocompleteController() = default;
AutocompleteInput FakeAutocompleteController::CreateInput(
std::u16string text,
bool omit_async,
bool prevent_inline_autocomplete) { … }
std::vector<std::string> FakeAutocompleteController::SimulateAutocompletePass(
bool sync,
bool done,
std::vector<AutocompleteMatch> matches,
AutocompleteInput input) { … }
std::vector<std::string>
FakeAutocompleteController::SimulateCleanAutocompletePass(
std::vector<AutocompleteMatch> matches) { … }
std::vector<std::string> FakeAutocompleteController::SimulateExpirePass() { … }
std::vector<std::string> FakeAutocompleteController::GetResultContents(
bool published) { … }
void FakeAutocompleteController::ExpectOnResultChanged(
int delay_ms,
AutocompleteController::UpdateType last_update_type) { … }
void FakeAutocompleteController::ExpectStopAfter(int delay_ms) { … }
void FakeAutocompleteController::ExpectNoNotificationOrStop() { … }