// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/feature_list.h" #include "build/build_config.h" #include "chrome/browser/ui/views/omnibox/omnibox_popup_view_webui_test.h" #include "components/omnibox/browser/omnibox_popup_selection.h" #include "components/omnibox/common/omnibox_features.h" #include "content/public/test/browser_test.h" #include "ui/base/ui_base_features.h" // ChromeOS environment doesn't instantiate the NewWebUI<OmniboxPopupUI> // in the factory's GetWebUIFactoryFunction, so these don't work there yet. // Also avoid burdening test bots on mobile platforms where webui omnibox // isn't ready and the platform-specific views implementation is in scope. #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) // Check that the location bar background (and the background of the textfield // it contains) changes when it receives focus, and matches the popup background // color. IN_PROC_BROWSER_TEST_F(OmniboxPopupViewWebUITest, PopupMatchesLocationBarBackground) { … } IN_PROC_BROWSER_TEST_F(OmniboxPopupViewWebUITest, PopupLoadsAndAcceptsCalls) { … } #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC)