#include "chrome/browser/ui/views/desktop_capture/desktop_media_tab_list.h"
#include "base/memory/raw_ptr.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/media/webrtc/desktop_media_list.h"
#include "chrome/browser/media/webrtc/fake_desktop_media_list.h"
#include "chrome/browser/ui/views/desktop_capture/desktop_media_picker_views.h"
#include "chrome/browser/ui/views/desktop_capture/desktop_media_picker_views_test_api.h"
#include "chrome/test/views/chrome_test_views_delegate.h"
#include "content/public/browser/desktop_media_id.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/gfx/image/image_skia.h"
#include "ui/views/controls/table/table_view.h"
#include "ui/views/layout/layout_provider.h"
#include "ui/views/test/scoped_views_test_helper.h"
#include "ui/views/test/widget_test.h"
#include "ui/views/widget/any_widget_observer.h"
Return;
ReturnRef;
const content::DesktopMediaID kDesktopMediaID0(
content::DesktopMediaID::Type::TYPE_WEB_CONTENTS,
0);
const content::DesktopMediaID kDesktopMediaID1(
content::DesktopMediaID::Type::TYPE_WEB_CONTENTS,
1);
const std::u16string kSourceName0 = …;
const std::u16string kSourceName1 = …;
const int kMaxPreviewTitleLength = …;
class DesktopMediaTabListTest : public testing::Test { … };
TEST_F(DesktopMediaTabListTest, InitialSelection) { … }
TEST_F(DesktopMediaTabListTest, TitleUpdatedIfTitleOfSelectedTabChanges) { … }
TEST_F(DesktopMediaTabListTest, SelectedSourceHasPreview) { … }
TEST_F(DesktopMediaTabListTest, UpdatedPreview) { … }
#if BUILDFLAG(IS_CHROMEOS_LACROS)
#define MAYBE_IgnorePreviewUpdatesForUnselectedSource …
#else
#define MAYBE_IgnorePreviewUpdatesForUnselectedSource …
#endif
TEST_F(DesktopMediaTabListTest, MAYBE_IgnorePreviewUpdatesForUnselectedSource) { … }
TEST_F(DesktopMediaTabListTest, PreviewedSourceChange) { … }
TEST_F(DesktopMediaTabListTest, LongPageTitle) { … }