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

Side by Side Diff: net/quic/quic_reliable_client_stream_test.cc

Issue 102313005: Remove the is_server argument from the QuicSession constructor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_data_stream_test.cc ('k') | net/quic/quic_session.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/quic/quic_reliable_client_stream.h" 5 #include "net/quic/quic_reliable_client_stream.h"
6 6
7 #include "net/base/net_errors.h" 7 #include "net/base/net_errors.h"
8 #include "net/base/test_completion_callback.h" 8 #include "net/base/test_completion_callback.h"
9 #include "net/quic/quic_client_session.h" 9 #include "net/quic/quic_client_session.h"
10 #include "net/quic/quic_utils.h" 10 #include "net/quic/quic_utils.h"
(...skipping 22 matching lines...) Expand all
33 MOCK_METHOD1(OnError, void(int)); 33 MOCK_METHOD1(OnError, void(int));
34 MOCK_METHOD0(HasSendHeadersComplete, bool()); 34 MOCK_METHOD0(HasSendHeadersComplete, bool());
35 35
36 private: 36 private:
37 DISALLOW_COPY_AND_ASSIGN(MockDelegate); 37 DISALLOW_COPY_AND_ASSIGN(MockDelegate);
38 }; 38 };
39 39
40 class QuicReliableClientStreamTest : public ::testing::Test { 40 class QuicReliableClientStreamTest : public ::testing::Test {
41 public: 41 public:
42 QuicReliableClientStreamTest() 42 QuicReliableClientStreamTest()
43 : session_(new MockConnection(false), false), 43 : session_(new MockConnection(false)),
44 stream_(kStreamId, &session_, BoundNetLog()) { 44 stream_(kStreamId, &session_, BoundNetLog()) {
45 stream_.SetDelegate(&delegate_); 45 stream_.SetDelegate(&delegate_);
46 } 46 }
47 47
48 void InitializeHeaders() { 48 void InitializeHeaders() {
49 headers_[":host"] = "www.google.com"; 49 headers_[":host"] = "www.google.com";
50 headers_[":path"] = "/index.hml"; 50 headers_[":path"] = "/index.hml";
51 headers_[":scheme"] = "https"; 51 headers_[":scheme"] = "https";
52 headers_["cookie"] = 52 headers_["cookie"] =
53 "__utma=208381060.1228362404.1372200928.1372200928.1372200928.1; " 53 "__utma=208381060.1228362404.1372200928.1372200928.1372200928.1; "
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 EXPECT_CALL(session_, WritevData(stream_.id(), _, _, _, _, _)).WillOnce( 159 EXPECT_CALL(session_, WritevData(stream_.id(), _, _, _, _, _)).WillOnce(
160 Return(QuicConsumedData(kDataLen, true))); 160 Return(QuicConsumedData(kDataLen, true)));
161 stream_.OnCanWrite(); 161 stream_.OnCanWrite();
162 ASSERT_TRUE(callback.have_result()); 162 ASSERT_TRUE(callback.have_result());
163 EXPECT_EQ(OK, callback.WaitForResult()); 163 EXPECT_EQ(OK, callback.WaitForResult());
164 } 164 }
165 165
166 } // namespace 166 } // namespace
167 } // namespace test 167 } // namespace test
168 } // namespace net 168 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_data_stream_test.cc ('k') | net/quic/quic_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698