| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <stddef.h> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 private: | 81 private: |
| 82 IOThread::NetworkSessionConfigurator network_session_configurator_; | 82 IOThread::NetworkSessionConfigurator network_session_configurator_; |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 TEST_F(NetworkSessionConfiguratorTest, Defaults) { | 85 TEST_F(NetworkSessionConfiguratorTest, Defaults) { |
| 86 ParseFieldTrialsAndCommandLine(); | 86 ParseFieldTrialsAndCommandLine(); |
| 87 | 87 |
| 88 EXPECT_FALSE(params_.ignore_certificate_errors); | 88 EXPECT_FALSE(params_.ignore_certificate_errors); |
| 89 EXPECT_EQ(0u, params_.testing_fixed_http_port); | 89 EXPECT_EQ(0u, params_.testing_fixed_http_port); |
| 90 EXPECT_EQ(0u, params_.testing_fixed_https_port); | 90 EXPECT_EQ(0u, params_.testing_fixed_https_port); |
| 91 EXPECT_TRUE(params_.enable_spdy31); | 91 EXPECT_FALSE(params_.enable_spdy31); |
| 92 EXPECT_TRUE(params_.enable_http2); | 92 EXPECT_TRUE(params_.enable_http2); |
| 93 EXPECT_FALSE(params_.enable_tcp_fast_open_for_ssl); | 93 EXPECT_FALSE(params_.enable_tcp_fast_open_for_ssl); |
| 94 EXPECT_FALSE(params_.parse_alternative_services); | 94 EXPECT_FALSE(params_.parse_alternative_services); |
| 95 EXPECT_FALSE(params_.enable_alternative_service_with_different_host); | 95 EXPECT_FALSE(params_.enable_alternative_service_with_different_host); |
| 96 EXPECT_TRUE(params_.enable_npn); | 96 EXPECT_TRUE(params_.enable_npn); |
| 97 EXPECT_TRUE(params_.enable_priority_dependencies); | 97 EXPECT_TRUE(params_.enable_priority_dependencies); |
| 98 EXPECT_FALSE(params_.enable_quic); | 98 EXPECT_FALSE(params_.enable_quic); |
| 99 EXPECT_FALSE(params_.enable_quic_for_proxies); | 99 EXPECT_FALSE(params_.enable_quic_for_proxies); |
| 100 EXPECT_FALSE(IOThread::ShouldEnableQuicForDataReductionProxy()); | 100 EXPECT_FALSE(IOThread::ShouldEnableQuicForDataReductionProxy()); |
| 101 } | 101 } |
| (...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 876 &IOThreadTestWithIOThreadObject::CheckAuthAndroidNegoitateAccountType, | 876 &IOThreadTestWithIOThreadObject::CheckAuthAndroidNegoitateAccountType, |
| 877 base::Unretained(this), "acc1")); | 877 base::Unretained(this), "acc1")); |
| 878 pref_service()->SetString(prefs::kAuthAndroidNegotiateAccountType, "acc2"); | 878 pref_service()->SetString(prefs::kAuthAndroidNegotiateAccountType, "acc2"); |
| 879 RunOnIOThreadBlocking(base::Bind( | 879 RunOnIOThreadBlocking(base::Bind( |
| 880 &IOThreadTestWithIOThreadObject::CheckAuthAndroidNegoitateAccountType, | 880 &IOThreadTestWithIOThreadObject::CheckAuthAndroidNegoitateAccountType, |
| 881 base::Unretained(this), "acc2")); | 881 base::Unretained(this), "acc2")); |
| 882 } | 882 } |
| 883 #endif | 883 #endif |
| 884 | 884 |
| 885 } // namespace test | 885 } // namespace test |
| OLD | NEW |