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

Side by Side Diff: net/tools/quic/quic_client_session_test.cc

Issue 1811043002: Landing Recent QUIC changes until 2016-03-15 16:26 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add an export clause. Created 4 years, 9 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 | « net/tools/quic/quic_client.cc ('k') | net/tools/quic/quic_packet_reader.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/tools/quic/quic_client_session.h" 5 #include "net/tools/quic/quic_client_session.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "net/base/ip_endpoint.h" 10 #include "net/base/ip_endpoint.h"
(...skipping 30 matching lines...) Expand all
41 using testing::AnyNumber; 41 using testing::AnyNumber;
42 using testing::Invoke; 42 using testing::Invoke;
43 using testing::Truly; 43 using testing::Truly;
44 using testing::_; 44 using testing::_;
45 45
46 namespace net { 46 namespace net {
47 namespace test { 47 namespace test {
48 namespace { 48 namespace {
49 49
50 const char kServerHostname[] = "test.example.com"; 50 const char kServerHostname[] = "test.example.com";
51 const uint16_t kPort = 80; 51 const uint16_t kPort = 443;
52 52
53 class TestQuicClientSession : public QuicClientSession { 53 class TestQuicClientSession : public QuicClientSession {
54 public: 54 public:
55 explicit TestQuicClientSession(const QuicConfig& config, 55 explicit TestQuicClientSession(const QuicConfig& config,
56 QuicConnection* connection, 56 QuicConnection* connection,
57 const QuicServerId& server_id, 57 const QuicServerId& server_id,
58 QuicCryptoClientConfig* crypto_config, 58 QuicCryptoClientConfig* crypto_config,
59 QuicClientPushPromiseIndex* push_promise_index) 59 QuicClientPushPromiseIndex* push_promise_index)
60 : QuicClientSession(config, 60 : QuicClientSession(config,
61 connection, 61 connection,
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 QuicClientPromisedInfo* promised = 491 QuicClientPromisedInfo* promised =
492 session_->GetPromisedById(promised_stream_id_); 492 session_->GetPromisedById(promised_stream_id_);
493 EXPECT_NE(promised, nullptr); 493 EXPECT_NE(promised, nullptr);
494 EXPECT_NE(session_->GetPromisedByUrl(promise_url_), nullptr); 494 EXPECT_NE(session_->GetPromisedByUrl(promise_url_), nullptr);
495 EXPECT_EQ(session_->GetPromisedStream(promised_stream_id_), nullptr); 495 EXPECT_EQ(session_->GetPromisedStream(promised_stream_id_), nullptr);
496 } 496 }
497 497
498 } // namespace 498 } // namespace
499 } // namespace test 499 } // namespace test
500 } // namespace net 500 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_client.cc ('k') | net/tools/quic/quic_packet_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698