#include "chrome/test/media_router/media_router_gmc_ui_for_test.h"
#include "base/run_loop.h"
#include "chrome/browser/media/router/media_router_feature.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/views/global_media_controls/cast_device_selector_view.h"
#include "chrome/browser/ui/views/global_media_controls/media_dialog_view.h"
#include "chrome/browser/ui/views/global_media_controls/media_toolbar_button_view.h"
#include "chrome/browser/ui/views/media_router/media_router_dialog_controller_views.h"
#include "chrome/browser/ui/views/toolbar/toolbar_view.h"
#include "chrome/test/base/interactive_test_utils.h"
#include "components/global_media_controls/public/views/media_item_ui_updated_view.h"
namespace media_router {
MediaRouterGmcUiForTest::MediaRouterGmcUiForTest(
content::WebContents* web_contents)
: … { … }
MediaRouterGmcUiForTest::~MediaRouterGmcUiForTest() { … }
void MediaRouterGmcUiForTest::SetUp() { … }
void MediaRouterGmcUiForTest::ShowDialog() { … }
bool MediaRouterGmcUiForTest::IsDialogShown() const { … }
void MediaRouterGmcUiForTest::HideDialog() { … }
void MediaRouterGmcUiForTest::ChooseSourceType(
CastDialogView::SourceType source_type) { … }
CastDialogView::SourceType MediaRouterGmcUiForTest::GetChosenSourceType()
const { … }
void MediaRouterGmcUiForTest::StartCasting(const std::string& sink_name) { … }
void MediaRouterGmcUiForTest::StopCasting(const std::string& sink_name) { … }
std::string MediaRouterGmcUiForTest::GetRouteIdForSink(
const std::string& sink_name) const { … }
std::string MediaRouterGmcUiForTest::GetStatusTextForSink(
const std::string& sink_name) const { … }
std::string MediaRouterGmcUiForTest::GetIssueTextForSink(
const std::string& sink_name) const { … }
void MediaRouterGmcUiForTest::WaitForSink(const std::string& sink_name) { … }
void MediaRouterGmcUiForTest::WaitForSinkAvailable(
const std::string& sink_name) { … }
void MediaRouterGmcUiForTest::WaitForAnyIssue() { … }
void MediaRouterGmcUiForTest::WaitForAnyRoute() { … }
void MediaRouterGmcUiForTest::WaitForDialogShown() { … }
void MediaRouterGmcUiForTest::WaitForDialogHidden() { … }
views::Button* MediaRouterGmcUiForTest::GetSinkButton(
const std::string& sink_name) const { … }
void MediaRouterGmcUiForTest::ObserveDialog(
WatchType watch_type,
std::optional<std::string> sink_name) { … }
}