OLD | NEW |
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 <memory> | 5 #include <memory> |
6 #include <ostream> | 6 #include <ostream> |
7 #include <utility> | 7 #include <utility> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 consumers.push_back(consumer); | 377 consumers.push_back(consumer); |
378 consumer->Start(&request_, BoundNetLog()); | 378 consumer->Start(&request_, BoundNetLog()); |
379 } | 379 } |
380 | 380 |
381 // Will terminate when the last consumer completes. | 381 // Will terminate when the last consumer completes. |
382 base::RunLoop().Run(); | 382 base::RunLoop().Run(); |
383 | 383 |
384 for (size_t i = 0; i < num_requests; ++i) { | 384 for (size_t i = 0; i < num_requests; ++i) { |
385 CheckResponse(*consumers[i], "HTTP/1.1 200", kResponseBody); | 385 CheckResponse(*consumers[i], "HTTP/1.1 200", kResponseBody); |
386 } | 386 } |
387 STLDeleteElements(&consumers); | 387 base::STLDeleteElements(&consumers); |
388 } | 388 } |
389 | 389 |
390 } // namespace test | 390 } // namespace test |
391 } // namespace net | 391 } // namespace net |
OLD | NEW |