#include "content/browser/webrtc/webrtc_internals_message_handler.h"
#include <memory>
#include <string>
#include "base/run_loop.h"
#include "base/strings/strcat.h"
#include "content/browser/child_process_security_policy_impl.h"
#include "content/browser/webrtc/webrtc_internals.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/url_constants.h"
#include "content/public/test/navigation_simulator.h"
#include "content/public/test/scoped_web_ui_controller_factory_registration.h"
#include "content/public/test/test_web_ui.h"
#include "content/test/test_web_contents.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content {
namespace {
static const GlobalRenderFrameHostId kFrameId = …;
static const int kPid = …;
static const int kLid = …;
static const char kRtcConfiguration[] = …;
static const char kUrl[] = …;
class WebRTCInternalsMessageHandlerForTest
: public WebRTCInternalsMessageHandler { … };
class WebRTCInternalsForTest : public WebRTCInternals { … };
}
class WebRtcInternalsMessageHandlerTest : public RenderViewHostTestHarness { … };
TEST_F(WebRtcInternalsMessageHandlerTest, DontRunJSBeforeNavigationCommitted) { … }
}