// Copyright 2024 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINES_TEST_ENVIRONMENT_H_ #define COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINES_TEST_ENVIRONMENT_H_ #include <memory> #include "base/memory/raw_ptr.h" #include "components/prefs/testing_pref_service.h" #include "components/search_engines/search_engine_choice/search_engine_choice_service.h" #include "components/search_engines/template_url_service.h" #include "components/sync_preferences/testing_pref_service_syncable.h" namespace search_engines { // Test helper that makes it easier to create a `TemplateURLService` and a // `SearchEngineChoiceService`. The caller should not worry about the // dependencies needed to create those classes. // `pref_service` and `local_state` can be passed by the caller using `Deps`. It // will be the caller's responsibility to make sure the incoming pref services // have the needed registrations. class SearchEnginesTestEnvironment { … }; } // namespace search_engines #endif // COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINES_TEST_ENVIRONMENT_H_