chromium/ui/views/controls/tabbed_pane/tabbed_pane_unittest.cc

// Copyright 2012 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/controls/tabbed_pane/tabbed_pane.h"

#include <memory>
#include <utility>

#include "base/i18n/rtl.h"
#include "base/memory/raw_ptr.h"
#include "base/strings/utf_string_conversions.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.h"
#include "ui/accessibility/ax_node_data.h"
#include "ui/events/keycodes/keyboard_code_conversion.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/test/ax_event_counter.h"
#include "ui/views/test/test_views.h"
#include "ui/views/test/views_test_base.h"
#include "ui/views/widget/widget.h"

ASCIIToUTF16;

namespace views::test {
namespace {

std::u16string DefaultTabTitle() {}

std::u16string GetAccessibleName(View* view) {}

ax::mojom::Role GetAccessibleRole(View* view) {}

}  // namespace

TabbedPaneTest;

// Tests tab orientation.
TEST_F(TabbedPaneTest, HorizontalOrientationDefault) {}

// Tests tab orientation.
TEST_F(TabbedPaneTest, VerticalOrientation) {}

// Tests tab strip style.
TEST_F(TabbedPaneTest, TabStripBorderStyle) {}

// Tests tab strip style.
TEST_F(TabbedPaneTest, TabStripHighlightStyle) {}

TEST_F(TabbedPaneTest, ScrollingDisabled) {}

TEST_F(TabbedPaneTest, ScrollingEnabled) {}

// Tests the preferred size and layout when tabs are aligned vertically..
TEST_F(TabbedPaneTest, SizeAndLayoutInVerticalOrientation) {}

TEST_F(TabbedPaneTest, AccessibleAttributes) {}

class TabbedPaneWithWidgetTest : public ViewsTestBase {};

// Tests the preferred size and layout when tabs are aligned horizontally.
// TabbedPane requests a size that fits the largest child or the minimum size
// necessary to display the tab titles, whichever is larger.
TEST_F(TabbedPaneWithWidgetTest, SizeAndLayout) {}

TEST_F(TabbedPaneWithWidgetTest, AddAndSelect) {}

TEST_F(TabbedPaneWithWidgetTest, ArrowKeyBindings) {}

TEST_F(TabbedPaneWithWidgetTest, ArrowKeyBindingsWithRTL) {}

// Use TabbedPane::HandleAccessibleAction() to select tabs and make sure their
// a11y information is correct.
TEST_F(TabbedPaneWithWidgetTest, SelectTabWithAccessibleAction) {}

TEST_F(TabbedPaneWithWidgetTest, AccessiblePaneTitleTracksActiveTabTitle) {}

TEST_F(TabbedPaneWithWidgetTest, AccessiblePaneContentsTitleTracksTabTitle) {}

TEST_F(TabbedPaneWithWidgetTest, AccessiblePaneContentsRoleIsTabPanel) {}

TEST_F(TabbedPaneWithWidgetTest, AccessibleEvents) {}

TEST_F(TabbedPaneWithWidgetTest, AccessibleNameTest) {}

TEST_F(TabbedPaneWithWidgetTest, AccessibleSelected) {}

}  // namespace views::test