#include "chrome/test/media_router/media_router_cast_ui_for_test.h"
#include "base/ranges/algorithm.h"
#include "base/run_loop.h"
#include "chrome/browser/media/router/media_router_feature.h"
#include "chrome/browser/ui/media_router/media_router_ui.h"
#include "chrome/browser/ui/views/media_router/cast_dialog_coordinator.h"
#include "chrome/browser/ui/views/media_router/cast_dialog_sink_button.h"
#include "chrome/browser/ui/views/media_router/media_router_dialog_controller_views.h"
#include "ui/gfx/geometry/point.h"
namespace media_router {
MediaRouterCastUiForTest::MediaRouterCastUiForTest(
content::WebContents* web_contents)
: … { … }
MediaRouterCastUiForTest::~MediaRouterCastUiForTest() { … }
void MediaRouterCastUiForTest::SetUp() { … }
void MediaRouterCastUiForTest::ShowDialog() { … }
bool MediaRouterCastUiForTest::IsDialogShown() const { … }
void MediaRouterCastUiForTest::HideDialog() { … }
void MediaRouterCastUiForTest::ChooseSourceType(
CastDialogView::SourceType source_type) { … }
CastDialogView::SourceType MediaRouterCastUiForTest::GetChosenSourceType()
const { … }
void MediaRouterCastUiForTest::StartCasting(const std::string& sink_name) { … }
void MediaRouterCastUiForTest::StopCasting(const std::string& sink_name) { … }
MediaRoute::Id MediaRouterCastUiForTest::GetRouteIdForSink(
const std::string& sink_name) const { … }
std::string MediaRouterCastUiForTest::GetStatusTextForSink(
const std::string& sink_name) const { … }
std::string MediaRouterCastUiForTest::GetIssueTextForSink(
const std::string& sink_name) const { … }
void MediaRouterCastUiForTest::WaitForSink(const std::string& sink_name) { … }
void MediaRouterCastUiForTest::WaitForSinkAvailable(
const std::string& sink_name) { … }
void MediaRouterCastUiForTest::WaitForAnyIssue() { … }
void MediaRouterCastUiForTest::WaitForAnyRoute() { … }
void MediaRouterCastUiForTest::WaitForDialogShown() { … }
void MediaRouterCastUiForTest::WaitForDialogHidden() { … }
void MediaRouterCastUiForTest::OnDialogCreated() { … }
void MediaRouterCastUiForTest::OnDialogModelUpdated(
CastDialogView* dialog_view) { … }
void MediaRouterCastUiForTest::OnDialogWillClose(CastDialogView* dialog_view) { … }
CastDialogSinkButton* MediaRouterCastUiForTest::GetSinkButton(
const std::string& sink_name) const { … }
void MediaRouterCastUiForTest::ObserveDialog(
WatchType watch_type,
std::optional<std::string> sink_name) { … }
const CastDialogView* MediaRouterCastUiForTest::GetDialogView() const { … }
CastDialogView* MediaRouterCastUiForTest::GetDialogView() { … }
CastDialogSinkView* MediaRouterCastUiForTest::GetSinkView(
const std::string& sink_name) const { … }
}