chromium/ui/views/accessible_pane_view_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/accessible_pane_view.h"

#include <memory>
#include <utility>

#include "base/memory/raw_ptr.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "ui/base/accelerators/accelerator.h"
#include "ui/base/metadata/metadata_header_macros.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/controls/button/label_button.h"
#include "ui/views/layout/fill_layout.h"
#include "ui/views/test/views_test_base.h"
#include "ui/views/widget/widget.h"

namespace views {

// TODO(alicet): bring pane rotation into views and add tests.
//               See browser_view.cc for details.

AccessiblePaneViewTest;

class TestBarView : public AccessiblePaneView {};

TestBarView::TestBarView()
    :{}

TestBarView::~TestBarView() = default;

void TestBarView::Init() {}

View* TestBarView::GetDefaultFocusableChild() {}

BEGIN_METADATA()

TEST_F(AccessiblePaneViewTest, SimpleSetPaneFocus) {}

TEST_F(AccessiblePaneViewTest, SetPaneFocusAndRestore) {}

TEST_F(AccessiblePaneViewTest, TwoSetPaneFocus) {}

TEST_F(AccessiblePaneViewTest, PaneFocusTraversal) {}

// TODO(crbug.com/40832756): Re-enable this test
#if defined(ADDRESS_SANITIZER) && defined(LEAK_SANITIZER)
#define MAYBE_DoesntCrashOnEscapeWithRemovedView
#else
#define MAYBE_DoesntCrashOnEscapeWithRemovedView
#endif
TEST_F(AccessiblePaneViewTest, MAYBE_DoesntCrashOnEscapeWithRemovedView) {}

TEST_F(AccessiblePaneViewTest, AccessibleProperties) {}

}  // namespace views