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

Unified Diff: net/base/ssl_config_service_unittest.cc

Issue 10014010: net: False Start only for NPN capable servers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months 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/base/ssl_config_service_unittest.cc
diff --git a/net/base/ssl_config_service_unittest.cc b/net/base/ssl_config_service_unittest.cc
index 67036bb2c55f9b002bc3b27f2afd28279126fe95..89733d46ad6e25380abcc9840bec562d543d8b87 100644
--- a/net/base/ssl_config_service_unittest.cc
+++ b/net/base/ssl_config_service_unittest.cc
@@ -14,11 +14,6 @@ namespace net {
namespace {
-bool IsFalseStartIncompatible(const std::string& hostname) {
- return SSLConfigService::IsKnownFalseStartIncompatibleServer(
- hostname);
-}
-
class MockSSLConfigService : public SSLConfigService {
public:
explicit MockSSLConfigService(const SSLConfig& config) : config_(config) {}
@@ -52,21 +47,6 @@ class MockSSLConfigServiceObserver : public SSLConfigService::Observer {
} // namespace
-TEST(SSLConfigServiceTest, FalseStartDisabledHosts) {
- EXPECT_TRUE(IsFalseStartIncompatible("www.picnik.com"));
- EXPECT_FALSE(IsFalseStartIncompatible("picnikfoo.com"));
- EXPECT_FALSE(IsFalseStartIncompatible("foopicnik.com"));
-}
-
-TEST(SSLConfigServiceTest, FalseStartDisabledDomains) {
- EXPECT_TRUE(IsFalseStartIncompatible("yodlee.com"));
- EXPECT_TRUE(IsFalseStartIncompatible("a.yodlee.com"));
- EXPECT_TRUE(IsFalseStartIncompatible("b.a.yodlee.com"));
- EXPECT_FALSE(IsFalseStartIncompatible("ayodlee.com"));
- EXPECT_FALSE(IsFalseStartIncompatible("yodleea.com"));
- EXPECT_FALSE(IsFalseStartIncompatible("yodlee.org"));
-}
-
TEST(SSLConfigServiceTest, NoChangesWontNotifyObservers) {
SSLConfig initial_config;
initial_config.rev_checking_enabled = true;

Powered by Google App Engine
This is Rietveld 408576698