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

Side by Side Diff: net/http/bidirectional_stream_unittest.cc

Issue 2932503005: Change AlternativeServiceInfo to a class (Closed)
Patch Set: Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | net/http/http_network_transaction_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1640 matching lines...) Expand 10 before | Expand all | Expand 10 after
1651 delegate->GetTotalSentBytes()); 1651 delegate->GetTotalSentBytes());
1652 EXPECT_EQ(CountReadBytes(reads, arraysize(reads)), 1652 EXPECT_EQ(CountReadBytes(reads, arraysize(reads)),
1653 delegate->GetTotalReceivedBytes()); 1653 delegate->GetTotalReceivedBytes());
1654 1654
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
OLDNEW
« no previous file with comments | « no previous file | net/http/http_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698