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

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

Issue 126283002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed extra space Created 6 years, 11 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
« no previous file with comments | « net/quic/quic_default_packet_writer.h ('k') | net/quic/quic_framer_test.cc » ('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 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/compiler_specific.h" 6 #include "base/compiler_specific.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "net/base/test_completion_callback.h" 10 #include "net/base/test_completion_callback.h"
(...skipping 29 matching lines...) Expand all
40 namespace { 40 namespace {
41 41
42 const char kResponseBody[] = "some arbitrary response body"; 42 const char kResponseBody[] = "some arbitrary response body";
43 43
44 // Factory for creating HttpTransactions, used by TestTransactionConsumer. 44 // Factory for creating HttpTransactions, used by TestTransactionConsumer.
45 class TestTransactionFactory : public HttpTransactionFactory { 45 class TestTransactionFactory : public HttpTransactionFactory {
46 public: 46 public:
47 TestTransactionFactory(const HttpNetworkSession::Params& params) 47 TestTransactionFactory(const HttpNetworkSession::Params& params)
48 : session_(new HttpNetworkSession(params)) {} 48 : session_(new HttpNetworkSession(params)) {}
49 49
50 virtual ~TestTransactionFactory() { 50 virtual ~TestTransactionFactory() OVERRIDE {
51 FLAGS_fake_packet_loss_percentage = 0; 51 FLAGS_fake_packet_loss_percentage = 0;
52 } 52 }
53 53
54 // HttpTransactionFactory methods 54 // HttpTransactionFactory methods
55 virtual int CreateTransaction(RequestPriority priority, 55 virtual int CreateTransaction(RequestPriority priority,
56 scoped_ptr<HttpTransaction>* trans) OVERRIDE { 56 scoped_ptr<HttpTransaction>* trans) OVERRIDE {
57 trans->reset(new HttpNetworkTransaction(priority, session_)); 57 trans->reset(new HttpNetworkTransaction(priority, session_));
58 return OK; 58 return OK;
59 } 59 }
60 60
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 base::MessageLoop::current()->Run(); 299 base::MessageLoop::current()->Run();
300 300
301 for (size_t i = 0; i < num_requests; ++i) { 301 for (size_t i = 0; i < num_requests; ++i) {
302 CheckResponse(*consumers[i], "HTTP/1.1 200 OK", kResponseBody); 302 CheckResponse(*consumers[i], "HTTP/1.1 200 OK", kResponseBody);
303 } 303 }
304 STLDeleteElements(&consumers); 304 STLDeleteElements(&consumers);
305 } 305 }
306 306
307 } // namespace test 307 } // namespace test
308 } // namespace net 308 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_default_packet_writer.h ('k') | net/quic/quic_framer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698