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

Unified Diff: media/cast/sender/vp8_quantizer_parser_unittest.cc

Issue 1905763002: Convert //media/cast from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « media/cast/sender/vp8_encoder.h ('k') | media/cast/test/cast_benchmarks.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/sender/vp8_quantizer_parser_unittest.cc
diff --git a/media/cast/sender/vp8_quantizer_parser_unittest.cc b/media/cast/sender/vp8_quantizer_parser_unittest.cc
index 260dd79b22ebc09b729e107a38eacb1c1eead293..e323a898f2a6b01df9d7a986c15ad8cf5492ecc1 100644
--- a/media/cast/sender/vp8_quantizer_parser_unittest.cc
+++ b/media/cast/sender/vp8_quantizer_parser_unittest.cc
@@ -80,7 +80,7 @@ class Vp8QuantizerParserTest : public ::testing::Test {
base::TimeDelta next_frame_timestamp_;
VideoSenderConfig video_config_;
- scoped_ptr<Vp8Encoder> vp8_encoder_;
+ std::unique_ptr<Vp8Encoder> vp8_encoder_;
DISALLOW_COPY_AND_ASSIGN(Vp8QuantizerParserTest);
};
@@ -88,7 +88,7 @@ class Vp8QuantizerParserTest : public ::testing::Test {
// Encode 3 frames to test the cases with insufficient data input.
TEST_F(Vp8QuantizerParserTest, InsufficientData) {
for (int i = 0; i < 3; ++i) {
- scoped_ptr<SenderEncodedFrame> encoded_frame(new SenderEncodedFrame());
+ std::unique_ptr<SenderEncodedFrame> encoded_frame(new SenderEncodedFrame());
const uint8_t* encoded_data =
reinterpret_cast<const uint8_t*>(encoded_frame->data.data());
// Null input.
@@ -138,7 +138,8 @@ TEST_F(Vp8QuantizerParserTest, VariedQuantizer) {
for (int qp = 4; qp <= 63; qp += 10) {
UpdateQuantizer(qp);
for (int i = 0; i < 3; ++i) {
- scoped_ptr<SenderEncodedFrame> encoded_frame(new SenderEncodedFrame());
+ std::unique_ptr<SenderEncodedFrame> encoded_frame(
+ new SenderEncodedFrame());
EncodeOneFrame(encoded_frame.get());
decoded_quantizer = ParseVp8HeaderQuantizer(
reinterpret_cast<const uint8_t*>(encoded_frame->data.data()),
« no previous file with comments | « media/cast/sender/vp8_encoder.h ('k') | media/cast/test/cast_benchmarks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698