#include <memory>
#include <string>
#include "base/strings/stringprintf.h"
#include "chrome/browser/subresource_filter/subresource_filter_browser_test_harness.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "net/test/spawned_test_server/spawned_test_server.h"
#include "net/test/test_data_directory.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace subresource_filter {
enum WebSocketCreationPolicy { … };
class SubresourceFilterWebSocketBrowserTest
: public SubresourceFilterBrowserTest,
public ::testing::WithParamInterface<WebSocketCreationPolicy> { … };
IN_PROC_BROWSER_TEST_P(SubresourceFilterWebSocketBrowserTest, BlockWebSocket) { … }
IN_PROC_BROWSER_TEST_P(SubresourceFilterWebSocketBrowserTest,
DoNotBlockWebSocketNoActivatedFrame) { … }
IN_PROC_BROWSER_TEST_P(SubresourceFilterWebSocketBrowserTest,
DoNotBlockWebSocketInActivatedFrameWithNoRule) { … }
INSTANTIATE_TEST_SUITE_P(…);
}