| OLD | NEW | 
|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "net/http/bidirectional_stream.h" | 5 #include "net/http/bidirectional_stream.h" | 
| 6 | 6 | 
| 7 #include <memory> | 7 #include <memory> | 
| 8 #include <string> | 8 #include <string> | 
| 9 #include <utility> | 9 #include <utility> | 
| 10 #include <vector> | 10 #include <vector> | 
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 379     base::TimeDelta infinite_delay = base::TimeDelta::Max(); | 379     base::TimeDelta infinite_delay = base::TimeDelta::Max(); | 
| 380     base::MockTimer::Start(posted_from, infinite_delay, user_task); | 380     base::MockTimer::Start(posted_from, infinite_delay, user_task); | 
| 381   } | 381   } | 
| 382 | 382 | 
| 383  private: | 383  private: | 
| 384   DISALLOW_COPY_AND_ASSIGN(MockTimer); | 384   DISALLOW_COPY_AND_ASSIGN(MockTimer); | 
| 385 }; | 385 }; | 
| 386 | 386 | 
| 387 }  // namespace | 387 }  // namespace | 
| 388 | 388 | 
| 389 class BidirectionalStreamTest : public testing::TestWithParam<bool> { | 389 class BidirectionalStreamTest : public testing::Test { | 
| 390  public: | 390  public: | 
| 391   BidirectionalStreamTest() | 391   BidirectionalStreamTest() | 
| 392       : default_url_(kDefaultUrl), | 392       : default_url_(kDefaultUrl), | 
| 393         host_port_pair_(HostPortPair::FromURL(default_url_)), | 393         host_port_pair_(HostPortPair::FromURL(default_url_)), | 
| 394         key_(host_port_pair_, ProxyServer::Direct(), PRIVACY_MODE_DISABLED), | 394         key_(host_port_pair_, ProxyServer::Direct(), PRIVACY_MODE_DISABLED), | 
| 395         ssl_data_(SSLSocketDataProvider(ASYNC, OK)) { | 395         ssl_data_(SSLSocketDataProvider(ASYNC, OK)) { | 
| 396     ssl_data_.next_proto = kProtoHTTP2; | 396     ssl_data_.next_proto = kProtoHTTP2; | 
| 397     ssl_data_.cert = ImportCertFromFile(GetTestCertsDirectory(), "ok_cert.pem"); | 397     ssl_data_.cert = ImportCertFromFile(GetTestCertsDirectory(), "ok_cert.pem"); | 
| 398     net_log_.SetCaptureMode(NetLogCaptureMode::IncludeSocketBytes()); | 398     net_log_.SetCaptureMode(NetLogCaptureMode::IncludeSocketBytes()); | 
| 399   } | 399   } | 
| (...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1655   AlternativeServiceInfoVector alternative_service_info_vector = | 1655   AlternativeServiceInfoVector alternative_service_info_vector = | 
| 1656       http_session_->http_server_properties()->GetAlternativeServiceInfos( | 1656       http_session_->http_server_properties()->GetAlternativeServiceInfos( | 
| 1657           url::SchemeHostPort(default_url_)); | 1657           url::SchemeHostPort(default_url_)); | 
| 1658   ASSERT_EQ(1u, alternative_service_info_vector.size()); | 1658   ASSERT_EQ(1u, alternative_service_info_vector.size()); | 
| 1659   AlternativeService alternative_service(kProtoQUIC, "www.example.org", 443); | 1659   AlternativeService alternative_service(kProtoQUIC, "www.example.org", 443); | 
| 1660   EXPECT_EQ(alternative_service, | 1660   EXPECT_EQ(alternative_service, | 
| 1661             alternative_service_info_vector[0].alternative_service()); | 1661             alternative_service_info_vector[0].alternative_service()); | 
| 1662 } | 1662 } | 
| 1663 | 1663 | 
| 1664 }  // namespace net | 1664 }  // namespace net | 
| OLD | NEW | 
|---|