chromium/components/safe_browsing/content/renderer/websocket_sb_extensions_handshake_throttle_unittest.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/safe_browsing/content/renderer/websocket_sb_extensions_handshake_throttle.h"

#include <optional>
#include <utility>

#include "base/functional/callback.h"
#include "base/run_loop.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/task_environment.h"
#include "components/safe_browsing/content/common/safe_browsing.mojom.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/platform/web_security_origin.h"
#include "third_party/blink/public/platform/web_string.h"
#include "third_party/blink/public/platform/web_url.h"

namespace safe_browsing {

namespace {

constexpr char kTestUrl[] =;
constexpr char kTestExtensionId[] =;
constexpr char kTestExtensionUrl[] =;

class FakeExtensionWebRequestReporter
    : public mojom::ExtensionWebRequestReporter {};

class FakeCallback {};

class WebSocketSBExtensionsHandshakeThrottleTest : public ::testing::Test {};

TEST_F(WebSocketSBExtensionsHandshakeThrottleTest, Construction) {}

TEST_F(WebSocketSBExtensionsHandshakeThrottleTest,
       SendExtensionWebRequestData) {}

TEST_F(WebSocketSBExtensionsHandshakeThrottleTest,
       SendExtensionWebRequestData_ContentScript) {}

}  // namespace

}  // namespace safe_browsing