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

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

Issue 1298253002: Remove reference counting from HttpNetworkSession. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed too much, back up a bit Created 5 years, 3 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 (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/spdy/spdy_http_stream.h" 5 #include "net/spdy/spdy_http_stream.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 void TestSendCredentials( 94 void TestSendCredentials(
95 ChannelIDService* channel_id_service, 95 ChannelIDService* channel_id_service,
96 const std::string& cert, 96 const std::string& cert,
97 const std::string& proof); 97 const std::string& proof);
98 98
99 SpdyTestUtil spdy_util_; 99 SpdyTestUtil spdy_util_;
100 TestNetLog net_log_; 100 TestNetLog net_log_;
101 SpdySessionDependencies session_deps_; 101 SpdySessionDependencies session_deps_;
102 scoped_ptr<SequencedSocketData> sequenced_data_; 102 scoped_ptr<SequencedSocketData> sequenced_data_;
103 scoped_refptr<HttpNetworkSession> http_session_; 103 scoped_ptr<HttpNetworkSession> http_session_;
104 base::WeakPtr<SpdySession> session_; 104 base::WeakPtr<SpdySession> session_;
105 105
106 private: 106 private:
107 MockECSignatureCreatorFactory ec_signature_creator_factory_; 107 MockECSignatureCreatorFactory ec_signature_creator_factory_;
108 }; 108 };
109 109
110 INSTANTIATE_TEST_CASE_P(NextProto, 110 INSTANTIATE_TEST_CASE_P(NextProto,
111 SpdyHttpStreamTest, 111 SpdyHttpStreamTest,
112 testing::Values(kProtoSPDY31, 112 testing::Values(kProtoSPDY31,
113 kProtoHTTP2)); 113 kProtoHTTP2));
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 EXPECT_EQ(kUploadData, std::string(buf1->data(), kUploadDataSize)); 761 EXPECT_EQ(kUploadData, std::string(buf1->data(), kUploadDataSize));
762 762
763 ASSERT_TRUE(response.headers.get()); 763 ASSERT_TRUE(response.headers.get());
764 ASSERT_EQ(200, response.headers->response_code()); 764 ASSERT_EQ(200, response.headers->response_code());
765 } 765 }
766 766
767 // TODO(willchan): Write a longer test for SpdyStream that exercises all 767 // TODO(willchan): Write a longer test for SpdyStream that exercises all
768 // methods. 768 // methods.
769 769
770 } // namespace net 770 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698