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

Side by Side Diff: net/spdy/spdy_stream_unittest.cc

Issue 2109803002: Change a number of SPDY unittests from http to https. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/spdy/spdy_stream.h" 5 #include "net/spdy/spdy_stream.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <cstddef> 9 #include <cstddef>
10 #include <limits> 10 #include <limits>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 protected: 64 protected:
65 // A function that takes a SpdyStream and the number of bytes which 65 // A function that takes a SpdyStream and the number of bytes which
66 // will unstall the next frame completely. 66 // will unstall the next frame completely.
67 typedef base::Callback<void(const base::WeakPtr<SpdyStream>&, int32_t)> 67 typedef base::Callback<void(const base::WeakPtr<SpdyStream>&, int32_t)>
68 UnstallFunction; 68 UnstallFunction;
69 69
70 SpdyStreamTest() 70 SpdyStreamTest()
71 : spdy_util_(GetProtocol(), GetDependenciesFromPriority()), 71 : spdy_util_(GetProtocol(), GetDependenciesFromPriority()),
72 session_deps_(GetProtocol()), 72 session_deps_(GetProtocol()),
73 offset_(0) { 73 offset_(0) {
74 spdy_util_.set_default_url(GURL(kStreamUrl));
74 session_deps_.enable_priority_dependencies = GetDependenciesFromPriority(); 75 session_deps_.enable_priority_dependencies = GetDependenciesFromPriority();
75 session_ = SpdySessionDependencies::SpdyCreateSession(&session_deps_); 76 session_ = SpdySessionDependencies::SpdyCreateSession(&session_deps_);
76 } 77 }
77 78
78 ~SpdyStreamTest() { 79 ~SpdyStreamTest() {
79 } 80 }
80 81
81 base::WeakPtr<SpdySession> CreateDefaultSpdySession() { 82 base::WeakPtr<SpdySession> CreateDefaultSpdySession() {
82 SpdySessionKey key(HostPortPair("www.example.org", 80), 83 SpdySessionKey key(HostPortPair("www.example.org", 80),
83 ProxyServer::Direct(), PRIVACY_MODE_DISABLED); 84 ProxyServer::Direct(), PRIVACY_MODE_DISABLED);
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after
1149 EXPECT_EQ(response_len, stream->raw_received_bytes()); 1150 EXPECT_EQ(response_len, stream->raw_received_bytes());
1150 1151
1151 // FIN 1152 // FIN
1152 data.Resume(); 1153 data.Resume();
1153 EXPECT_EQ(ERR_CONNECTION_CLOSED, delegate.WaitForClose()); 1154 EXPECT_EQ(ERR_CONNECTION_CLOSED, delegate.WaitForClose());
1154 } 1155 }
1155 1156
1156 } // namespace test 1157 } // namespace test
1157 1158
1158 } // namespace net 1159 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698