#include "net/ssl/ssl_cipher_suite_names.h"
#include "net/ssl/ssl_connection_status_flags.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/boringssl/src/include/openssl/ssl.h"
namespace net {
namespace {
int kObsoleteVersion = …;
int kModernVersion = …;
uint16_t kModernCipherSuite = …;
uint16_t kObsoleteCipherObsoleteKeyExchange = …;
uint16_t kObsoleteCipherModernKeyExchange = …;
uint16_t kModernCipherObsoleteKeyExchange = …;
uint16_t kModernCipherModernKeyExchange = …;
uint16_t kObsoleteSignature = …;
uint16_t kModernSignature = …;
int MakeConnectionStatus(int version, uint16_t cipher_suite) { … }
TEST(CipherSuiteNamesTest, Basic) { … }
TEST(CipherSuiteNamesTest, ParseSSLCipherString) { … }
TEST(CipherSuiteNamesTest, ParseSSLCipherStringFails) { … }
TEST(CipherSuiteNamesTest, ObsoleteSSLStatusProtocol) { … }
TEST(CipherSuiteNamesTest, ObsoleteSSLStatusProtocolAndCipherSuite) { … }
TEST(CipherSuiteNamesTest, HTTP2CipherSuites) { … }
}
}