#include "chrome/browser/ui/views/media_router/cast_dialog_view.h"
#include "chrome/browser/ui/media_router/cast_dialog_controller.h"
#include "chrome/browser/ui/media_router/cast_dialog_model.h"
#include "chrome/browser/ui/media_router/media_route_starter.h"
#include "chrome/browser/ui/media_router/ui_media_sink.h"
#include "chrome/browser/ui/test/test_browser_dialog.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/media_router/cast_dialog_coordinator.h"
#include "components/media_router/browser/presentation/start_presentation_context.h"
#include "components/media_router/common/mojom/media_router.mojom.h"
#include "content/public/test/browser_test.h"
namespace {
media_router::UIMediaSink CreateAvailableSink() { … }
media_router::UIMediaSink CreateConnectedSink() { … }
media_router::UIMediaSink CreateUnavailableSink() { … }
media_router::CastDialogModel CreateModelWithSinks(
std::vector<media_router::UIMediaSink> sinks) { … }
class MockCastDialogController : public media_router::CastDialogController { … };
}
class CastDialogViewBrowserTest : public DialogBrowserTest { … };
IN_PROC_BROWSER_TEST_F(CastDialogViewBrowserTest, InvokeUi_Available) { … }
IN_PROC_BROWSER_TEST_F(CastDialogViewBrowserTest, InvokeUi_Connected) { … }
IN_PROC_BROWSER_TEST_F(CastDialogViewBrowserTest, InvokeUi_Unavailable) { … }
IN_PROC_BROWSER_TEST_F(CastDialogViewBrowserTest, InvokeUi_Mixed) { … }
IN_PROC_BROWSER_TEST_F(CastDialogViewBrowserTest, InvokeUi_NoSinks) { … }