#include <tuple>
#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/scoped_feature_list.h"
#include "content/browser/media/session/media_session_impl.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/content_switches.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/content_browser_test.h"
#include "content/public/test/content_browser_test_utils.h"
#include "content/public/test/test_navigation_observer.h"
#include "content/shell/browser/shell.h"
#include "media/base/media_switches.h"
#include "services/media_session/public/cpp/features.h"
#include "services/media_session/public/cpp/test/mock_media_session.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content {
MediaSessionInfo;
namespace {
static const char kStartPlayerScript[] = …;
static const char kPausePlayerScript[] = …;
enum class MediaSuspend { … };
enum class BackgroundResuming { … };
struct VisibilityTestData { … };
}
class MediaSessionImplVisibilityBrowserTest
: public ContentBrowserTest,
public ::testing::WithParamInterface<VisibilityTestData> { … };
namespace {
VisibilityTestData kTestParams[] = …;
}
IN_PROC_BROWSER_TEST_P(MediaSessionImplVisibilityBrowserTest,
DISABLED_TestEntryPoint) { … }
INSTANTIATE_TEST_SUITE_P(…);
}