#include "chrome/test/media_router/media_router_e2e_browsertest.h"
#include <memory>
#include <vector>
#include "base/command_line.h"
#include "base/containers/contains.h"
#include "base/functional/bind.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/media_router/browser/media_router.h"
#include "components/media_router/browser/media_router_factory.h"
#include "components/media_router/common/media_source.h"
#include "components/media_router/common/route_request_result.h"
#include "components/sessions/content/session_tab_helper.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/test_utils.h"
#include "media/base/test_data_util.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/origin.h"
namespace {
const char kCastAppPresentationUrl[] = …;
const char kVideo[] = …;
const char kBearVP9Video[] = …;
const char kOrigin[] = …;
}
namespace media_router {
MediaRouterE2EBrowserTest::MediaRouterE2EBrowserTest()
: … { … }
MediaRouterE2EBrowserTest::~MediaRouterE2EBrowserTest() { … }
void MediaRouterE2EBrowserTest::SetUpOnMainThread() { … }
void MediaRouterE2EBrowserTest::TearDownOnMainThread() { … }
bool MediaRouterE2EBrowserTest::RequiresMediaRouteProviders() const { … }
void MediaRouterE2EBrowserTest::OnRouteResponseReceived(
mojom::RoutePresentationConnectionPtr,
const RouteRequestResult& result) { … }
void MediaRouterE2EBrowserTest::CreateMediaRoute(
const MediaSource& source,
const url::Origin& origin,
content::WebContents* web_contents) { … }
void MediaRouterE2EBrowserTest::StopMediaRoute() { … }
bool MediaRouterE2EBrowserTest::IsSinkDiscovered() const { … }
bool MediaRouterE2EBrowserTest::IsRouteCreated() const { … }
void MediaRouterE2EBrowserTest::OpenMediaPage() { … }
IN_PROC_BROWSER_TEST_P(MediaRouterE2EBrowserTest, MANUAL_TabMirroring) { … }
IN_PROC_BROWSER_TEST_P(MediaRouterE2EBrowserTest, MANUAL_CastApp) { … }
INSTANTIATE_MEDIA_ROUTER_INTEGRATION_BROWER_TEST_SUITE(…);
}