Index: net/quic/quic_end_to_end_unittest.cc |
diff --git a/net/quic/quic_end_to_end_unittest.cc b/net/quic/quic_end_to_end_unittest.cc |
index 1d23456f5e81d285fcbaae265c4a112b95492713..4cb12350e9a7c66a6237fa7b4558d55aa3063883 100644 |
--- a/net/quic/quic_end_to_end_unittest.cc |
+++ b/net/quic/quic_end_to_end_unittest.cc |
@@ -2,6 +2,8 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include <vector> |
+ |
#include "base/basictypes.h" |
#include "base/compiler_specific.h" |
#include "base/memory/scoped_ptr.h" |
@@ -196,12 +198,11 @@ class QuicEndToEndTest : public PlatformTest { |
// Initializes |request_| for a post of |length| bytes. |
void InitializePostRequest(size_t length) { |
GenerateBody(length); |
- ScopedVector<UploadElementReader> element_readers; |
- element_readers.push_back( |
- new UploadBytesElementReader(request_body_.data(), |
- request_body_.length())); |
+ std::vector<scoped_ptr<UploadElementReader>> element_readers; |
+ element_readers.push_back(make_scoped_ptr(new UploadBytesElementReader( |
+ request_body_.data(), request_body_.length()))); |
upload_data_stream_.reset( |
- new ElementsUploadDataStream(element_readers.Pass(), 0)); |
+ new ElementsUploadDataStream(std::move(element_readers), 0)); |
request_.method = "POST"; |
request_.url = GURL("https://test.example.com/"); |
request_.upload_data_stream = upload_data_stream_.get(); |