chromium/chrome/browser/ui/views/media_router/cast_dialog_sink_view_unittest.cc

// Copyright 2023 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/media_router/cast_dialog_sink_view.h"

#include "base/test/scoped_feature_list.h"
#include "chrome/browser/media/router/discovery/access_code/access_code_cast_feature.h"
#include "chrome/browser/media/router/media_router_feature.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/test/base/testing_profile.h"
#include "chrome/test/views/chrome_views_test_base.h"
#include "components/prefs/pref_service.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/views/accessibility/view_accessibility.h"

namespace media_router {
namespace {

UIMediaSink CreateAvailableSink() {}

UIMediaSink CreateNonfreezableSink() {}

UIMediaSink CreateFreezableSink() {}

UIMediaSink CreateFreezableFrozenSink() {}

UIMediaSink CreateFreezableSinkWithTabSource() {}

UIMediaSink CreateFrozenSinkWithTabSource() {}

UIMediaSink CreateFreezableSinkWithDesktopSource() {}

UIMediaSink CreateFrozenSinkWithDesktopSource() {}

}  // namespace

class CastDialogSinkViewTest : public ChromeViewsTestBase {};

TEST_F(CastDialogSinkViewTest, FreezableSink) {}

TEST_F(CastDialogSinkViewTest, NonfreezableSink) {}

TEST_F(CastDialogSinkViewTest, SetEnabledState) {}

// CastDialogSinkView will show the stop button, but not a freeze button.
TEST_F(CastDialogSinkViewTest, StopButton) {}

// Tests that the AccessibleName for the freeze and stop buttons are set
// correctly based on source and device name.
TEST_F(CastDialogSinkViewTest, ButtonsAccessibleName) {}

}  // namespace media_router