#ifdef UNSAFE_BUFFERS_BUILD
#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 { … };
}
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) { … }
}