chromium/chrome/browser/ui/views/tabs/tab_hover_card_bubble_view_unittest.cc

// Copyright 2021 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/tab_hover_card_bubble_view.h"

#include <ostream>
#include <string>

#include "build/build_config.h"
#include "chrome/browser/ui/views/tabs/filename_elider.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gtest/include/gtest/gtest-param-test.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/render_text.h"

#if BUILDFLAG(IS_MAC)
#include "base/mac/mac_util.h"
#endif

class TabHoverCardBubbleViewFilenameEliderTest {};

#define EM_SPACE
#define MULT_SYMBOL
#define COMBINING_CIRCUMFLEX

#define MEDICAL_SYMBOL_EMOJI
#define ZERO_WIDTH_JOINER
#define MAN_EMOJI
#define MEDIUM_SKIN_TONE_MODIFIER
#define MALE_HEALTH_WORKER_MEDIUM_SKIN_TONE

#define BIDIFY(a, b)
#define ELLIPSIZE(a, b)

struct ElideImplTestParams {};

void PrintTo(const ElideImplTestParams& params, ::std::ostream* os) {}

const ElideImplTestParams kElideImplTestParams[]{};

class TabHoverCardBubbleViewFilenameEliderElideImplTest
    : public TabHoverCardBubbleViewFilenameEliderTest,
      public testing::TestWithParam<ElideImplTestParams> {};

INSTANTIATE_TEST_SUITE_P();

TEST_P(TabHoverCardBubbleViewFilenameEliderElideImplTest, ElideImpl) {}

struct ElideTestParams {};

void PrintTo(const ElideTestParams& params, ::std::ostream* os) {}

const ElideTestParams kElideTestParams[]{};

class TabHoverCardBubbleViewFilenameEliderGetLineLengthsTest
    : public TabHoverCardBubbleViewFilenameEliderTest,
      public testing::TestWithParam<ElideTestParams> {};

INSTANTIATE_TEST_SUITE_P();

TEST_P(TabHoverCardBubbleViewFilenameEliderGetLineLengthsTest, GetLineLengths) {}

TEST_P(TabHoverCardBubbleViewFilenameEliderGetLineLengthsTest, Elide) {}

struct FindImageDimensionsTestParams {};

void PrintTo(const FindImageDimensionsTestParams& params, ::std::ostream* os) {}

const FindImageDimensionsTestParams kFindImageDimensionsTestParams[]{};

class TabHoverCardBubbleViewFilenameEliderFindImageDimensionsTest
    : public TabHoverCardBubbleViewFilenameEliderTest,
      public testing::TestWithParam<FindImageDimensionsTestParams> {};

INSTANTIATE_TEST_SUITE_P();

TEST_P(TabHoverCardBubbleViewFilenameEliderFindImageDimensionsTest,
       FindImageDimensions) {}