chromium/third_party/blink/renderer/platform/loader/fetch/resource_load_scheduler_test.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 "third_party/blink/renderer/platform/loader/fetch/resource_load_scheduler.h"

#include <memory>

#include "base/memory/raw_ptr_exclusion.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/test_mock_time_task_runner.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/common/loader/loading_behavior_flag.h"
#include "third_party/blink/renderer/platform/heap/collection_support/heap_vector.h"
#include "third_party/blink/renderer/platform/heap/persistent.h"
#include "third_party/blink/renderer/platform/loader/fetch/console_logger.h"
#include "third_party/blink/renderer/platform/loader/fetch/loading_behavior_observer.h"
#include "third_party/blink/renderer/platform/loader/testing/test_resource_fetcher_properties.h"
#include "third_party/blink/renderer/platform/scheduler/test/fake_frame_scheduler.h"
#include "third_party/blink/renderer/platform/testing/testing_platform_support.h"
#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"

namespace blink {
namespace {

class MockClient final : public GarbageCollected<MockClient>,
                         public ResourceLoadSchedulerClient {};

class LoadingBehaviorObserverImpl final
    : public GarbageCollected<LoadingBehaviorObserverImpl>,
      public LoadingBehaviorObserver {};

class ResourceLoadSchedulerTest : public testing::Test {};

TEST_F(ResourceLoadSchedulerTest, StopStoppableRequest) {}

TEST_F(ResourceLoadSchedulerTest, ThrottleThrottleableRequest) {}

TEST_F(ResourceLoadSchedulerTest, Throttled) {}

TEST_F(ResourceLoadSchedulerTest, Unthrottle) {}

TEST_F(ResourceLoadSchedulerTest, Stopped) {}

TEST_F(ResourceLoadSchedulerTest, PriorityIsConsidered) {}

TEST_F(ResourceLoadSchedulerTest, AllowedRequestsRunInPriorityOrder) {}

TEST_F(ResourceLoadSchedulerTest, StoppableRequestResumesWhenThrottled) {}

TEST_F(ResourceLoadSchedulerTest, SetPriority) {}

TEST_F(ResourceLoadSchedulerTest, LoosenThrottlingPolicy) {}

TEST_F(ResourceLoadSchedulerTest, ConsoleMessage) {}

TEST_F(ResourceLoadSchedulerTest, ConsiderNetworkStateInTigtMode) {}

TEST_F(ResourceLoadSchedulerTest,
       ConsiderNetworkStateInTigtModeWithPoorConnection) {}

}  // namespace
}  // namespace blink