chromium/chrome/browser/ui/views/omnibox/omnibox_result_view_unittest.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/ui/views/omnibox/omnibox_result_view.h"

#include <memory>

#include "base/memory/raw_ptr.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/ui/omnibox/omnibox_theme.h"
#include "chrome/browser/ui/views/omnibox/omnibox_header_view.h"
#include "chrome/browser/ui/views/omnibox/omnibox_popup_view_views.h"
#include "chrome/browser/ui/views/omnibox/omnibox_row_view.h"
#include "chrome/test/views/chrome_views_test_base.h"
#include "components/omnibox/browser/omnibox_controller.h"
#include "components/omnibox/browser/test_omnibox_client.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/accessibility/ax_enums.mojom.h"
#include "ui/accessibility/ax_node_data.h"
#include "ui/display/test/test_screen.h"
#include "ui/events/event.h"
#include "ui/events/event_constants.h"
#include "ui/events/event_utils.h"
#include "ui/events/types/event_type.h"
#include "ui/gfx/image/image.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/widget/widget.h"

#if defined(USE_AURA)
#include "ui/aura/env.h"
#endif

namespace {

// An arbitrary index for the result view under test. Used to test the selection
// state. There are 6 results total so the index should be in the range 0-5.
static constexpr size_t kTestResultViewIndex =;

class TestOmniboxPopupViewViews : public OmniboxPopupViewViews {};

}  // namespace

class OmniboxResultViewTest : public ChromeViewsTestBase {};

TEST_F(OmniboxResultViewTest, MousePressedWithLeftButtonSelectsThisResult) {}

TEST_F(OmniboxResultViewTest, MouseDragWithLeftButtonSelectsThisResult) {}

TEST_F(OmniboxResultViewTest, MouseDragWithNonLeftButtonSetsHoveredState) {}

TEST_F(OmniboxResultViewTest, MouseDragOutOfViewCancelsHoverState) {}

TEST_F(OmniboxResultViewTest, MouseEnterAndExitSetsHoveredState) {}

TEST_F(OmniboxResultViewTest, MouseEnterAndExitSetsHoveredAccessibleState) {}

TEST_F(OmniboxResultViewTest, AccessibleProperties) {}

TEST_F(OmniboxResultViewTest, ExpandedCollapsedAccessibilityState) {}

TEST_F(OmniboxResultViewTest, StarterPackMatch) {}

TEST_F(OmniboxResultViewTest, FeaturedEnterpriseSearchMatch) {}