chromium/chrome/browser/ui/views/tabs/compound_tab_container_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 "chrome/browser/ui/views/tabs/compound_tab_container.h"

#include <memory>
#include "base/memory/raw_ref.h"
#include "chrome/browser/ui/layout_constants.h"
#include "chrome/browser/ui/tabs/tab_renderer_data.h"
#include "chrome/browser/ui/views/frame/browser_root_view.h"
#include "chrome/browser/ui/views/tabs/fake_base_tab_strip_controller.h"
#include "chrome/browser/ui/views/tabs/fake_tab_slot_controller.h"
#include "chrome/browser/ui/views/tabs/tab_drag_context.h"
#include "chrome/browser/ui/views/tabs/tab_group_header.h"
#include "chrome/test/views/chrome_views_test_base.h"
#include "tab_style_views.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "ui/base/dragdrop/drag_drop_types.h"
#include "ui/base/dragdrop/drop_target_event.h"
#include "ui/base/metadata/metadata_header_macros.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/gfx/animation/animation_test_api.h"
#include "ui/views/view_utils.h"
#include "ui/views/widget/widget.h"

namespace {

class FakeTabDragContext : public TabDragContextBase {};

BEGIN_METADATA()

class FakeTabContainerController final : public TabContainerController {};

void SetTabDataPinned(Tab* tab, TabPinned pinned) {}
}  // namespace

class CompoundTabContainerTest : public ChromeViewsTestBase {};

TEST_F(CompoundTabContainerTest, PinnedTabReparents) {}

TEST_F(CompoundTabContainerTest, PinDuringUnpinAnimation) {}

TEST_F(CompoundTabContainerTest, MoveTabsWithinContainers) {}

TEST_F(CompoundTabContainerTest, MoveTabBetweenContainers) {}

TEST_F(CompoundTabContainerTest, RemoveTab) {}

TEST_F(CompoundTabContainerTest, GetIndexOfFirstNonClosingTab) {}

TEST_F(CompoundTabContainerTest, ExitsClosingModeAtStandardWidth) {}

TEST_F(CompoundTabContainerTest, ClosingPinnedTabsEngagesClosingMode) {}

TEST_F(CompoundTabContainerTest, ExitsClosingModeWhenClosingLastUnpinnedTab) {}

TEST_F(CompoundTabContainerTest, UpdateAnimationTarget) {}

TEST_F(CompoundTabContainerTest, SubContainersOverlap) {}

TEST_F(CompoundTabContainerTest, AvailableWidth) {}

TEST_F(CompoundTabContainerTest, GetEventAndTooltipHandlerForOverlappingArea) {}

namespace {
ui::DropTargetEvent MakeEventForDragLocation(const gfx::Point& p) {}
}  // namespace

TEST_F(CompoundTabContainerTest, DropIndexForDragLocationIsCorrect) {}