Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Unified Diff: net/http/transport_security_state_unittest.cc

Issue 2582323004: Migrate static transport security state fuzzer to LibFuzzer. (Closed)
Patch Set: reinterpret_cast Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/http/transport_security_state_unittest.cc
diff --git a/net/http/transport_security_state_unittest.cc b/net/http/transport_security_state_unittest.cc
index 061a0ae6360a95fc9db1e34efd0b3a7e940f6b8a..7fb0b491049ba0a661003c451a3f81d6fdf5bad5 100644
--- a/net/http/transport_security_state_unittest.cc
+++ b/net/http/transport_security_state_unittest.cc
@@ -486,29 +486,6 @@ TEST_F(TransportSecurityStateTest, MatchesCase1) {
EXPECT_TRUE(state.ShouldUpgradeToSSL("example.com"));
}
-TEST_F(TransportSecurityStateTest, Fuzz) {
- TransportSecurityState state;
- TransportSecurityState::STSState sts_state;
- TransportSecurityState::PKPState pkp_state;
-
- EnableStaticPins(&state);
-
- for (size_t i = 0; i < 128; i++) {
- std::string hostname;
-
- for (;;) {
- if (base::RandInt(0, 16) == 7) {
- break;
- }
- if (i > 0 && base::RandInt(0, 7) == 7) {
- hostname.append(1, '.');
- }
- hostname.append(1, 'a' + base::RandInt(0, 25));
- }
- state.GetStaticDomainState(hostname, &sts_state, &pkp_state);
- }
-}
-
TEST_F(TransportSecurityStateTest, MatchesCase2) {
TransportSecurityState state;
const base::Time current_time(base::Time::Now());

Powered by Google App Engine
This is Rietveld 408576698