#include "base/command_line.h"
#include "build/build_config.h"
#include "content/browser/webrtc/webrtc_webcam_browsertest.h"
#include "content/public/browser/browser_child_process_host.h"
#include "content/public/browser/child_process_host.h"
#include "content/public/browser/video_capture_service.h"
#include "content/public/common/content_features.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_utils.h"
#include "content/shell/browser/shell.h"
#include "media/base/media_switches.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "services/video_capture/public/mojom/testing_controls.mojom.h"
#include "services/video_capture/public/mojom/video_capture_service.mojom.h"
namespace content {
namespace {
static const char kVideoCaptureHtmlFile[] = …;
static const char kStartVideoCaptureAndVerifySize[] = …;
static const char kWaitForVideoToTurnBlack[] = …;
static const char kVerifyHasReceivedTrackEndedEvent[] = …;
}
class WebRtcVideoCaptureBrowserTest : public ContentBrowserTest { … };
#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN)
#define MAYBE_RecoverFromCrashInVideoCaptureProcess …
#else
#define MAYBE_RecoverFromCrashInVideoCaptureProcess …
#endif
IN_PROC_BROWSER_TEST_F(WebRtcVideoCaptureBrowserTest,
MAYBE_RecoverFromCrashInVideoCaptureProcess) { … }
}