Remove usages of QuicMakeUnique, Http2MakeUnique, SpdyMakeUnique.
This is made possible by all embedders finally supporting C++14's
std::make_unique, which is already used in more than 100 files in quic/.
gfe-relnote: n/a, no functional change.
PiperOrigin-RevId: 273935577
Change-Id: Icd6dd234422f286d897ea13ae609a67310f96380
diff --git a/http2/test_tools/frame_parts_collector.cc b/http2/test_tools/frame_parts_collector.cc
index cb0e32b..083bbe1 100644
--- a/http2/test_tools/frame_parts_collector.cc
+++ b/http2/test_tools/frame_parts_collector.cc
@@ -9,7 +9,6 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "net/third_party/quiche/src/http2/http2_structures_test_util.h"
#include "net/third_party/quiche/src/http2/platform/api/http2_logging.h"
-#include "net/third_party/quiche/src/http2/platform/api/http2_ptr_util.h"
namespace http2 {
namespace test {
@@ -54,7 +53,7 @@
TestExpectedHeader(header);
EXPECT_FALSE(IsInProgress());
if (current_frame_ == nullptr) {
- current_frame_ = Http2MakeUnique<FrameParts>(header);
+ current_frame_ = std::make_unique<FrameParts>(header);
}
return current_frame();
}
@@ -64,7 +63,7 @@
TestExpectedHeader(header);
EXPECT_FALSE(IsInProgress());
if (current_frame_ == nullptr) {
- current_frame_ = Http2MakeUnique<FrameParts>(header);
+ current_frame_ = std::make_unique<FrameParts>(header);
}
Http2FrameDecoderListener* result = current_frame();
collected_frames_.push_back(std::move(current_frame_));
@@ -96,7 +95,7 @@
// The decoder may detect an error before making any calls to the listener
// regarding the frame, in which case current_frame_==nullptr and we need
// to create a FrameParts instance.
- current_frame_ = Http2MakeUnique<FrameParts>(header);
+ current_frame_ = std::make_unique<FrameParts>(header);
} else {
// Similarly, the decoder may have made calls to the listener regarding the
// frame before detecting the error; for example, the DATA payload decoder