chromium/services/network/throttling/throttling_controller_unittest.cc

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

#include "services/network/throttling/throttling_controller.h"

#include <stdint.h>

#include <memory>
#include <string>
#include <utility>

#include "base/functional/bind.h"
#include "base/memory/ref_counted.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "base/test/test_mock_time_task_runner.h"
#include "net/base/chunked_upload_data_stream.h"
#include "net/base/completion_repeating_callback.h"
#include "net/http/http_transaction_test_util.h"
#include "net/log/net_log.h"
#include "net/log/net_log_with_source.h"
#include "services/network/throttling/network_conditions.h"
#include "services/network/throttling/scoped_throttling_token.h"
#include "services/network/throttling/throttling_network_interceptor.h"
#include "services/network/throttling/throttling_network_transaction.h"
#include "services/network/throttling/throttling_upload_data_stream.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"

namespace network {

kSimpleGET_Transaction;
MockHttpRequest;
MockNetworkLayer;
MockTransaction;
TEST_MODE_SYNC_NET_START;

const char kUploadData[] =;
int64_t kUploadIdentifier =;

class TestCallback {};

class ThrottlingControllerTestHelper {};

TEST(ThrottlingControllerTest, SingleDisableEnable) {}

TEST(ThrottlingControllerTest, InterceptorIsolation) {}

TEST(ThrottlingControllerTest, FailOnStart) {}

TEST(ThrottlingControllerTest, FailRunningTransaction) {}

TEST(ThrottlingControllerTest, ReadAfterFail) {}

TEST(ThrottlingControllerTest, CancelTransaction) {}

TEST(ThrottlingControllerTest, CancelFailedTransaction) {}

TEST(ThrottlingControllerTest, UploadDoesNotFail) {}

TEST(ThrottlingControllerTest, DownloadOnly) {}

TEST(ThrottlingControllerTest, UploadOnly) {}

TEST(ThrottlingControllerTest, DownloadBufferSizeIsNotModifiedIfNotThrottled) {}

TEST(ThrottlingControllerTest, DownloadIsStreamed) {}

}  // namespace network