Index: net/ssl/ssl_cipher_suite_names_unittest.cc |
diff --git a/net/ssl/ssl_cipher_suite_names_unittest.cc b/net/ssl/ssl_cipher_suite_names_unittest.cc |
index a9133fb67ea2ea729af607c6fe0e6797148011f3..042ca82a5d3b1473a8f7f53b57e52acdb4d13961 100644 |
--- a/net/ssl/ssl_cipher_suite_names_unittest.cc |
+++ b/net/ssl/ssl_cipher_suite_names_unittest.cc |
@@ -56,6 +56,22 @@ TEST(CipherSuiteNamesTest, ParseSSLCipherStringFails) { |
} |
} |
+TEST(CipherSuiteNamesTest, SecureCipherSuites) { |
+ // Picked some random cipher suites. |
+ EXPECT_FALSE(IsSecureTLSCipherSuite(0x0)); |
+ EXPECT_FALSE(IsSecureTLSCipherSuite(0x39)); |
+ EXPECT_FALSE(IsSecureTLSCipherSuite(0xc5)); |
+ EXPECT_FALSE(IsSecureTLSCipherSuite(0xc00f)); |
+ EXPECT_FALSE(IsSecureTLSCipherSuite(0xc083)); |
+ |
+ // Non-existent cipher suite. |
+ EXPECT_FALSE(IsSecureTLSCipherSuite(0xffff)) << "Doesn't exist!"; |
+ |
+ // Secure ones. |
+ EXPECT_TRUE(IsSecureTLSCipherSuite(0xcc13)); |
+ EXPECT_TRUE(IsSecureTLSCipherSuite(0xcc14)); |
+} |
+ |
} // anonymous namespace |
} // namespace net |