chromium/net/http/http_response_info_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 "net/http/http_response_info.h"

#include "base/pickle.h"
#include "net/base/proxy_chain.h"
#include "net/cert/signed_certificate_timestamp.h"
#include "net/cert/signed_certificate_timestamp_and_status.h"
#include "net/http/http_response_headers.h"
#include "net/ssl/ssl_connection_status_flags.h"
#include "net/test/cert_test_util.h"
#include "net/test/ct_test_util.h"
#include "net/test/test_data_directory.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace net {

namespace {

class HttpResponseInfoTest : public testing::Test {};

TEST_F(HttpResponseInfoTest, UnusedSincePrefetchDefault) {}

TEST_F(HttpResponseInfoTest, UnusedSincePrefetchCopy) {}

TEST_F(HttpResponseInfoTest, UnusedSincePrefetchPersistFalse) {}

TEST_F(HttpResponseInfoTest, UnusedSincePrefetchPersistTrue) {}

TEST_F(HttpResponseInfoTest, ProxyChainDefault) {}

TEST_F(HttpResponseInfoTest, ProxyChainCopy) {}

TEST_F(HttpResponseInfoTest, ProxyChainPersistDirect) {}

TEST_F(HttpResponseInfoTest, ProxyChainPersistProxy) {}

TEST_F(HttpResponseInfoTest, PKPBypassPersistTrue) {}

TEST_F(HttpResponseInfoTest, PKPBypassPersistFalse) {}

TEST_F(HttpResponseInfoTest, AsyncRevalidationRequestedDefault) {}

TEST_F(HttpResponseInfoTest, AsyncRevalidationRequestedCopy) {}

TEST_F(HttpResponseInfoTest, AsyncRevalidationRequestedAssign) {}

TEST_F(HttpResponseInfoTest, AsyncRevalidationRequestedNotPersisted) {}

TEST_F(HttpResponseInfoTest, StaleRevalidationTimeoutDefault) {}

TEST_F(HttpResponseInfoTest, StaleRevalidationTimeoutCopy) {}

TEST_F(HttpResponseInfoTest, StaleRevalidationTimeoutRestoreValue) {}

TEST_F(HttpResponseInfoTest, StaleRevalidationTimeoutRestoreNoValue) {}

// Test that key_exchange_group is preserved for ECDHE ciphers.
TEST_F(HttpResponseInfoTest, KeyExchangeGroupECDHE) {}

// Test that key_exchange_group is preserved for TLS 1.3.
TEST_F(HttpResponseInfoTest, KeyExchangeGroupTLS13) {}

// Test that key_exchange_group is discarded for non-ECDHE ciphers prior to TLS
// 1.3, to account for the historical key_exchange_info field. See
// https://crbug.com/639421.
TEST_F(HttpResponseInfoTest, LegacyKeyExchangeInfoDHE) {}

// Test that key_exchange_group is discarded for unknown ciphers prior to TLS
// 1.3, to account for the historical key_exchange_info field. See
// https://crbug.com/639421.
TEST_F(HttpResponseInfoTest, LegacyKeyExchangeInfoUnknown) {}

// Test that peer_signature_algorithm is preserved.
TEST_F(HttpResponseInfoTest, PeerSignatureAlgorithm) {}

// Test that encrypted_client_hello is preserved.
TEST_F(HttpResponseInfoTest, EncryptedClientHello) {}

// Tests that cache entries loaded over SSLv3 (no longer supported) are dropped.
TEST_F(HttpResponseInfoTest, FailsInitFromPickleWithSSLV3) {}

// Test that `dns_aliases` is preserved.
TEST_F(HttpResponseInfoTest, DnsAliases) {}

// Test that an empty `dns_aliases` is preserved and doesn't throw an error.
TEST_F(HttpResponseInfoTest, EmptyDnsAliases) {}

// Test that `browser_run_id` is preserved.
TEST_F(HttpResponseInfoTest, BrowserRunId) {}

// Test that an empty `browser_run_id` is preserved and doesn't throw an error.
TEST_F(HttpResponseInfoTest, EmptyBrowserRunId) {}

// Test that did_use_shared_dictionary is preserved .
TEST_F(HttpResponseInfoTest, DidUseSharedDictionary) {}

}  // namespace

}  // namespace net