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

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

Issue 189403002: QUIC - Minor cleanup changes to match the internal source code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use public ::testing:: Created 6 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 | Annotate | Revision Log
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 <vector> 5 #include <vector>
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 private: 98 private:
99 std::vector<QuicEncryptedPacket*> packets_; 99 std::vector<QuicEncryptedPacket*> packets_;
100 std::vector<MockWrite> writes_; 100 std::vector<MockWrite> writes_;
101 std::vector<MockRead> reads_; 101 std::vector<MockRead> reads_;
102 size_t sequence_number_; 102 size_t sequence_number_;
103 scoped_ptr<SocketDataProvider> socket_data_; 103 scoped_ptr<SocketDataProvider> socket_data_;
104 }; 104 };
105 105
106 class QuicNetworkTransactionTest 106 class QuicNetworkTransactionTest
107 : public PlatformTest, 107 : public PlatformTest,
108 public testing::WithParamInterface<QuicVersion> { 108 public ::testing::WithParamInterface<QuicVersion> {
109 protected: 109 protected:
110 QuicNetworkTransactionTest() 110 QuicNetworkTransactionTest()
111 : maker_(GetParam(), 0), 111 : maker_(GetParam(), 0),
112 clock_(new MockClock), 112 clock_(new MockClock),
113 ssl_config_service_(new SSLConfigServiceDefaults), 113 ssl_config_service_(new SSLConfigServiceDefaults),
114 proxy_service_(ProxyService::CreateDirect()), 114 proxy_service_(ProxyService::CreateDirect()),
115 auth_handler_factory_( 115 auth_handler_factory_(
116 HttpAuthHandlerFactory::CreateDefault(&host_resolver_)), 116 HttpAuthHandlerFactory::CreateDefault(&host_resolver_)),
117 random_generator_(0), 117 random_generator_(0),
118 hanging_data_(NULL, 0, NULL, 0) { 118 hanging_data_(NULL, 0, NULL, 0) {
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 NULL, 828 NULL,
829 net_log_.bound()); 829 net_log_.bound());
830 830
831 CreateSession(); 831 CreateSession();
832 AddQuicAlternateProtocolMapping(MockCryptoClientStream::ZERO_RTT); 832 AddQuicAlternateProtocolMapping(MockCryptoClientStream::ZERO_RTT);
833 SendRequestAndExpectHttpResponse("hello world"); 833 SendRequestAndExpectHttpResponse("hello world");
834 } 834 }
835 835
836 } // namespace test 836 } // namespace test
837 } // namespace net 837 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_crypto_server_stream_test.cc ('k') | net/tools/quic/quic_time_wait_list_manager_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698