chromium/ui/views/interaction/interaction_test_util_views_unittest.cc

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

#include "ui/views/interaction/interaction_test_util_views.h"

#include <memory>
#include <string>
#include <utility>
#include <vector>

#include "base/test/bind.h"
#include "build/build_config.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/accessibility/ax_action_data.h"
#include "ui/accessibility/ax_enums.mojom-shared.h"
#include "ui/base/accelerators/accelerator.h"
#include "ui/base/interaction/element_identifier.h"
#include "ui/base/interaction/element_tracker.h"
#include "ui/base/interaction/expect_call_in_scope.h"
#include "ui/base/interaction/interaction_test_util.h"
#include "ui/base/metadata/metadata_header_macros.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/models/combobox_model.h"
#include "ui/base/models/simple_combobox_model.h"
#include "ui/base/models/simple_menu_model.h"
#include "ui/base/ui_base_types.h"
#include "ui/gfx/range/range.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/bubble/bubble_dialog_delegate_view.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/combobox/combobox.h"
#include "ui/views/controls/editable_combobox/editable_combobox.h"
#include "ui/views/controls/menu/menu_item_view.h"
#include "ui/views/controls/menu/menu_runner.h"
#include "ui/views/controls/tabbed_pane/tabbed_pane.h"
#include "ui/views/controls/textfield/textfield.h"
#include "ui/views/interaction/element_tracker_views.h"
#include "ui/views/layout/flex_layout.h"
#include "ui/views/layout/flex_layout_types.h"
#include "ui/views/test/views_test_base.h"
#include "ui/views/test/widget_test.h"
#include "ui/views/view.h"
#include "ui/views/view_class_properties.h"
#include "ui/views/view_utils.h"
#include "ui/views/widget/widget.h"

#if BUILDFLAG(IS_MAC)
#include "ui/base/interaction/interaction_test_util_mac.h"
#endif

namespace views::test {

namespace {
DEFINE_LOCAL_ELEMENT_IDENTIFIER_VALUE();
const char16_t kMenuItem1[] =;
const char16_t kMenuItem2[] =;
const char16_t kTab1Title[] =;
const char16_t kTab2Title[] =;
const char16_t kTab3Title[] =;
const char16_t kComboBoxItem1[] =;
const char16_t kComboBoxItem2[] =;
const char16_t kComboBoxItem3[] =;
constexpr int kMenuID1 =;
constexpr int kMenuID2 =;

class DefaultActionTestView : public View {};

BEGIN_METADATA()

class AcceleratorView : public View {};

BEGIN_METADATA()

}  // namespace

class InteractionTestUtilViewsTest
    : public ViewsTestBase,
      public testing::WithParamInterface<
          ui::test::InteractionTestUtil::InputType> {};

TEST_P(InteractionTestUtilViewsTest, PressButton) {}

TEST_P(InteractionTestUtilViewsTest, SelectMenuItem) {}

TEST_P(InteractionTestUtilViewsTest, DoDefault) {}

TEST_P(InteractionTestUtilViewsTest, SelectTab) {}

TEST_P(InteractionTestUtilViewsTest, SelectDropdownItem_Combobox) {}

TEST_P(InteractionTestUtilViewsTest, SelectDropdownItem_EditableCombobox) {}

TEST_P(InteractionTestUtilViewsTest, SelectDropdownItem_Combobox_NoArrow) {}

TEST_P(InteractionTestUtilViewsTest,
       SelectDropdownItem_EditableCombobox_NoArrow) {}

TEST_F(InteractionTestUtilViewsTest, EnterText_Textfield) {}

TEST_F(InteractionTestUtilViewsTest, EnterText_EditableCombobox) {}

TEST_F(InteractionTestUtilViewsTest, ActivateSurface) {}

TEST_F(InteractionTestUtilViewsTest, SendAccelerator) {}

TEST_F(InteractionTestUtilViewsTest, Confirm) {}

INSTANTIATE_TEST_SUITE_P();

}  // namespace views::test