chromium/components/domain_reliability/uploader_unittest.cc

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

#include "components/domain_reliability/uploader.h"

#include <stddef.h>

#include <memory>
#include <string>

#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "base/test/test_simple_task_runner.h"
#include "components/domain_reliability/test_util.h"
#include "net/base/isolation_info.h"
#include "net/base/load_flags.h"
#include "net/base/network_anonymization_key.h"
#include "net/http/http_response_headers.h"
#include "net/http/http_response_info.h"
#include "net/http/http_util.h"
#include "net/log/net_log_with_source.h"
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_context_builder.h"
#include "net/url_request/url_request_filter.h"
#include "net/url_request/url_request_interceptor.h"
#include "net/url_request/url_request_job.h"
#include "net/url_request/url_request_test_util.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace domain_reliability {
namespace {

const char kUploadURL[] =;

struct MockUploadResult {};

class UploadMockURLRequestJob : public net::URLRequestJob {};

class UploadInterceptor : public net::URLRequestInterceptor {};

class TestUploadCallback {};

class DomainReliabilityUploaderTest : public testing::Test {};

TEST_F(DomainReliabilityUploaderTest, Null) {}

TEST_F(DomainReliabilityUploaderTest, SuccessfulUpload) {}

TEST_F(DomainReliabilityUploaderTest, NetworkErrorUpload) {}

TEST_F(DomainReliabilityUploaderTest, ServerErrorUpload) {}

TEST_F(DomainReliabilityUploaderTest, RetryAfterUpload) {}

TEST_F(DomainReliabilityUploaderTest, UploadDepth1) {}

TEST_F(DomainReliabilityUploaderTest, UploadDepth2) {}

TEST_F(DomainReliabilityUploaderTest, UploadCanceledAtShutdown) {}

TEST_F(DomainReliabilityUploaderTest, NoUploadAfterShutdown) {}

}  // namespace
}  // namespace domain_reliability