#include <memory>
#include "base/cfi_buildflags.h"
#include "base/files/file_util.h"
#include "base/path_service.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/test/media_router/media_router_integration_browsertest.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/test_utils.h"
#include "net/base/filename_util.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "testing/gtest/include/gtest/gtest.h"
WebContents;
namespace media_router {
namespace {
const char kInitiateCloseFromReceiverPageScript[] = …;
}
class MediaRouterIntegrationOneUABrowserTest
: public MediaRouterIntegrationBrowserTest { … };
#if BUILDFLAG(IS_CHROMEOS)
#define MAYBE_Basic …
#else
#define MAYBE_Basic …
#endif
IN_PROC_BROWSER_TEST_P(MediaRouterIntegrationOneUABrowserTest, MAYBE_Basic) { … }
#undef MAYBE_Basic
IN_PROC_BROWSER_TEST_P(MediaRouterIntegrationOneUABrowserTest,
MANUAL_SendAndOnMessage) { … }
IN_PROC_BROWSER_TEST_P(MediaRouterIntegrationOneUABrowserTest,
MANUAL_ReceiverCloseConnection) { … }
#if BUILDFLAG(IS_CHROMEOS_ASH)
#define MAYBE_Fail_SendMessage …
#else
#define MAYBE_Fail_SendMessage …
#endif
IN_PROC_BROWSER_TEST_P(MediaRouterIntegrationOneUABrowserTest,
MAYBE_Fail_SendMessage) { … }
#undef MAYBE_Fail_SendMessage
#if BUILDFLAG(IS_CHROMEOS) || \
(BUILDFLAG(IS_LINUX) && \
(BUILDFLAG(CFI_CAST_CHECK) || BUILDFLAG(CFI_ICALL_CHECK) || \
BUILDFLAG(CFI_ENFORCEMENT_TRAP) || \
BUILDFLAG(CFI_ENFORCEMENT_DIAGNOSTIC)))
#define MAYBE_ReconnectSession …
#else
#define MAYBE_ReconnectSession …
#endif
IN_PROC_BROWSER_TEST_P(MediaRouterIntegrationOneUABrowserTest,
MAYBE_ReconnectSession) { … }
#undef MAYBE_ReconnectSession
#if BUILDFLAG(IS_CHROMEOS)
#define MAYBE_ReconnectSessionSameTab …
#else
#define MAYBE_ReconnectSessionSameTab …
#endif
IN_PROC_BROWSER_TEST_P(MediaRouterIntegrationOneUABrowserTest,
MAYBE_ReconnectSessionSameTab) { … }
#undef MAYBE_ReconnectSessionSameTab
class MediaRouterIntegrationOneUANoReceiverBrowserTest
: public MediaRouterIntegrationOneUABrowserTest { … };
#if BUILDFLAG(IS_CHROMEOS_ASH)
#define MAYBE_Basic …
#else
#define MAYBE_Basic …
#endif
IN_PROC_BROWSER_TEST_P(MediaRouterIntegrationOneUANoReceiverBrowserTest,
MAYBE_Basic) { … }
#undef MAYBE_Basic
#if BUILDFLAG(IS_CHROMEOS_ASH)
#define MAYBE_Fail_SendMessage …
#else
#define MAYBE_Fail_SendMessage …
#endif
IN_PROC_BROWSER_TEST_P(MediaRouterIntegrationOneUANoReceiverBrowserTest,
MAYBE_Fail_SendMessage) { … }
#undef MAYBE_Fail_SendMessage
#if BUILDFLAG(IS_CHROMEOS_ASH)
#define MAYBE_ReconnectSession …
#else
#define MAYBE_ReconnectSession …
#endif
IN_PROC_BROWSER_TEST_P(MediaRouterIntegrationOneUANoReceiverBrowserTest,
MAYBE_ReconnectSession) { … }
#if BUILDFLAG(IS_CHROMEOS_ASH)
#define MAYBE_ReconnectSessionSameTab …
#else
#define MAYBE_ReconnectSessionSameTab …
#endif
IN_PROC_BROWSER_TEST_P(MediaRouterIntegrationOneUANoReceiverBrowserTest,
MAYBE_ReconnectSessionSameTab) { … }
#undef MAYBE_ReconnectSessionSameTab
INSTANTIATE_MEDIA_ROUTER_INTEGRATION_BROWER_TEST_SUITE(…);
INSTANTIATE_MEDIA_ROUTER_INTEGRATION_BROWER_TEST_SUITE(…);
}