#include "chrome/browser/ui/webui/searchbox/realbox_handler.h"
#include <gtest/gtest.h>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
#include "base/check.h"
#include "base/memory/scoped_refptr.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/browser_features.h"
#include "chrome/browser/preloading/chrome_preloading.h"
#include "chrome/browser/preloading/prefetch/search_prefetch/field_trial_settings.h"
#include "chrome/browser/preloading/prefetch/search_prefetch/search_prefetch_browser_test_base.h"
#include "chrome/browser/preloading/prefetch/search_prefetch/search_prefetch_service.h"
#include "chrome/browser/preloading/prefetch/search_prefetch/search_prefetch_service_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/omnibox/omnibox_pedal_implementations.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/omnibox/browser/actions/history_clusters_action.h"
#include "components/omnibox/browser/actions/omnibox_action.h"
#include "components/omnibox/browser/actions/omnibox_pedal.h"
#include "components/omnibox/browser/actions/tab_switch_action.h"
#include "components/omnibox/browser/autocomplete_match.h"
#include "components/omnibox/browser/autocomplete_match_type.h"
#include "components/omnibox/browser/suggestion_answer.h"
#include "components/omnibox/browser/vector_icons.h"
#include "components/omnibox/common/omnibox_features.h"
#include "components/search_engines/search_engines_switches.h"
#include "components/search_engines/template_url.h"
#include "components/search_engines/template_url_data.h"
#include "components/search_engines/template_url_starter_pack_data.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/prerender_test_util.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "third_party/omnibox_proto/answer_type.pb.h"
#include "ui/base/ui_base_features.h"
#include "ui/gfx/vector_icon_types.h"
#include "url/gurl.h"
namespace {
class BrowserTestWithParam : public InProcessBrowserTest,
public testing::WithParamInterface<bool> { … };
}
INSTANTIATE_TEST_SUITE_P(…);
IN_PROC_BROWSER_TEST_P(BrowserTestWithParam, MatchVectorIcons) { … }
IN_PROC_BROWSER_TEST_P(BrowserTestWithParam, AnswerVectorIcons) { … }
IN_PROC_BROWSER_TEST_P(BrowserTestWithParam, PedalVectorIcons) { … }
IN_PROC_BROWSER_TEST_P(BrowserTestWithParam, ActionVectorIcons) { … }
class RealboxSearchBrowserTestPage : public searchbox::mojom::Page { … };
class RealboxSearchPreloadBrowserTest : public SearchPrefetchBaseBrowserTest { … };
class RealboxSearchPreloadWithSearchStatsBrowserTest
: public RealboxSearchPreloadBrowserTest { … };
class RealboxSearchPreloadWithoutSearchStatsBrowserTest
: public RealboxSearchPreloadBrowserTest { … };
IN_PROC_BROWSER_TEST_F(RealboxSearchPreloadWithSearchStatsBrowserTest,
SearchPreloadSuccess) { … }
IN_PROC_BROWSER_TEST_F(RealboxSearchPreloadWithoutSearchStatsBrowserTest,
SearchPreloadSuccess) { … }