#include "services/network/resource_scheduler/resource_scheduler_params_manager.h"
#include <map>
#include <string>
#include "base/strings/string_number_conversions.h"
#include "base/test/scoped_feature_list.h"
#include "net/nqe/network_quality_estimator_params.h"
#include "services/network/public/cpp/features.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace network {
namespace {
constexpr base::TimeDelta kLowerBoundQueuingDuration = …;
constexpr base::TimeDelta kUpperBoundQueuingDuration = …;
constexpr int kHttpRttMultiplierForQueuingDuration = …;
class ResourceSchedulerParamsManagerTest : public testing::Test { … };
TEST_F(ResourceSchedulerParamsManagerTest, VerifyAllDefaultParams) { … }
TEST_F(ResourceSchedulerParamsManagerTest,
DelayRequestsOnMultiplexedConnections) { … }
TEST_F(ResourceSchedulerParamsManagerTest,
DisableDelayRequestsOnMultiplexedConnections) { … }
TEST_F(ResourceSchedulerParamsManagerTest, MaxQueuingTime) { … }
TEST_F(ResourceSchedulerParamsManagerTest, MultipleFieldTrialsEnabled) { … }
TEST_F(ResourceSchedulerParamsManagerTest, ReadInvalidConfigTest) { … }
TEST_F(ResourceSchedulerParamsManagerTest, ReadValidConfigTest2) { … }
TEST_F(ResourceSchedulerParamsManagerTest, ReadValidConfigTest3) { … }
TEST_F(ResourceSchedulerParamsManagerTest, ThrottleDelayableDisabled) { … }
TEST_F(ResourceSchedulerParamsManagerTest,
MaxDelayableRequestsAndNonDelayableWeightSet) { … }
TEST_F(ResourceSchedulerParamsManagerTest,
ProactivelyThrottleLowPriorityRequests) { … }
}
}