chromium/extensions/renderer/extension_throttle_unittest.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include <memory>

#include "base/strings/string_number_conversions.h"
#include "base/time/time.h"
#include "extensions/renderer/extension_throttle_entry.h"
#include "extensions/renderer/extension_throttle_manager.h"
#include "extensions/renderer/extension_throttle_test_support.h"
#include "net/url_request/redirect_info.h"
#include "services/network/public/mojom/url_response_head.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"

TimeTicks;
BackoffEntry;

namespace extensions {

namespace {

class MockExtensionThrottleEntry : public ExtensionThrottleEntry {};

class MockExtensionThrottleManager : public ExtensionThrottleManager {};

struct TimeAndBool {};

struct GurlAndString {};

}  // namespace

class ExtensionThrottleEntryTest : public testing::Test {};

void ExtensionThrottleEntryTest::SetUp() {}

TEST_F(ExtensionThrottleEntryTest, CanThrottleRequest) {}

TEST_F(ExtensionThrottleEntryTest,
       CanThrottleRequestNotDuringExponentialBackoff) {}

TEST_F(ExtensionThrottleEntryTest, InterfaceUpdateFailure) {}

TEST_F(ExtensionThrottleEntryTest, InterfaceUpdateSuccess) {}

TEST_F(ExtensionThrottleEntryTest, InterfaceUpdateSuccessThenFailure) {}

TEST_F(ExtensionThrottleEntryTest, IsEntryReallyOutdated) {}

TEST_F(ExtensionThrottleEntryTest, MaxAllowedBackoff) {}

TEST_F(ExtensionThrottleEntryTest, MalformedContent) {}

TEST_F(ExtensionThrottleEntryTest, SlidingWindow) {}

TEST(ExtensionThrottleManagerTest, IsUrlStandardised) {}

TEST(ExtensionThrottleManagerTest, AreEntriesBeingCollected) {}

TEST(ExtensionThrottleManagerTest, IsHostBeingRegistered) {}

TEST(ExtensionThrottleManagerTest, LocalHostOptedOut) {}

TEST(ExtensionThrottleManagerTest, ClearOnNetworkChange) {}

TEST(ExtensionThrottleManagerTest, UseAfterNetworkChange) {}

}  // namespace extensions