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

Unified Diff: third_party/crashpad/crashpad/util/net/http_multipart_builder_test.cc

Issue 1911823002: Convert //third_party from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update crashpad's README.chromium Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/crashpad/crashpad/util/net/http_multipart_builder_test.cc
diff --git a/third_party/crashpad/crashpad/util/net/http_multipart_builder_test.cc b/third_party/crashpad/crashpad/util/net/http_multipart_builder_test.cc
index 66702256e6e42be548e5f130eb67a84db72ef0be..d019d058cf76f6c02fd00909a1c734fb6bd3a4ec 100644
--- a/third_party/crashpad/crashpad/util/net/http_multipart_builder_test.cc
+++ b/third_party/crashpad/crashpad/util/net/http_multipart_builder_test.cc
@@ -67,7 +67,7 @@ TEST(HTTPMultipartBuilder, ThreeStringFields) {
const char kValue3[] = "More tests";
builder.SetFormData(kKey3, kValue3);
- scoped_ptr<HTTPBodyStream> body(builder.GetBodyStream());
+ std::unique_ptr<HTTPBodyStream> body(builder.GetBodyStream());
ASSERT_TRUE(body.get());
std::string contents = ReadStreamToString(body.get());
auto lines = SplitCRLF(contents);
@@ -116,7 +116,7 @@ TEST(HTTPMultipartBuilder, ThreeFileAttachments) {
const char kFileContents[] = "This is a test.\n";
- scoped_ptr<HTTPBodyStream> body(builder.GetBodyStream());
+ std::unique_ptr<HTTPBodyStream> body(builder.GetBodyStream());
ASSERT_TRUE(body.get());
std::string contents = ReadStreamToString(body.get());
auto lines = SplitCRLF(contents);
@@ -160,7 +160,7 @@ TEST(HTTPMultipartBuilder, OverwriteFormDataWithEscapedKey) {
const char kKey[] = "a 100% \"silly\"\r\ntest";
builder.SetFormData(kKey, "some dummy value");
builder.SetFormData(kKey, "overwrite");
- scoped_ptr<HTTPBodyStream> body(builder.GetBodyStream());
+ std::unique_ptr<HTTPBodyStream> body(builder.GetBodyStream());
ASSERT_TRUE(body.get());
std::string contents = ReadStreamToString(body.get());
auto lines = SplitCRLF(contents);
@@ -200,7 +200,7 @@ TEST(HTTPMultipartBuilder, OverwriteFileAttachment) {
testdata_path.Append(FILE_PATH_LITERAL(
"ascii_http_body.txt")),
"text/plain");
- scoped_ptr<HTTPBodyStream> body(builder.GetBodyStream());
+ std::unique_ptr<HTTPBodyStream> body(builder.GetBodyStream());
ASSERT_TRUE(body.get());
std::string contents = ReadStreamToString(body.get());
auto lines = SplitCRLF(contents);
@@ -249,7 +249,7 @@ TEST(HTTPMultipartBuilder, SharedFormDataAndAttachmentKeyNamespace) {
const char kValue2[] = "this is not a file";
builder.SetFormData("minidump", kValue2);
- scoped_ptr<HTTPBodyStream> body(builder.GetBodyStream());
+ std::unique_ptr<HTTPBodyStream> body(builder.GetBodyStream());
ASSERT_TRUE(body.get());
std::string contents = ReadStreamToString(body.get());
auto lines = SplitCRLF(contents);

Powered by Google App Engine
This is Rietveld 408576698