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

Unified Diff: components/webp_transcode/webp_decoder_unittest.mm

Issue 1917673002: Convert //components/[u-z]* 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 | « components/webp_transcode/webp_decoder.h ('k') | components/webusb/webusb_detector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/webp_transcode/webp_decoder_unittest.mm
diff --git a/components/webp_transcode/webp_decoder_unittest.mm b/components/webp_transcode/webp_decoder_unittest.mm
index eb294ab65f4a18f62d5bbc504fcaaccd8274a504..5a82d0687961debe9118cd69f4b83b4679a1b342 100644
--- a/components/webp_transcode/webp_decoder_unittest.mm
+++ b/components/webp_transcode/webp_decoder_unittest.mm
@@ -9,6 +9,8 @@
#include <stddef.h>
#include <stdint.h>
+#include <memory>
+
#include "base/base_paths.h"
#include "base/files/file_path.h"
#include "base/ios/ios_util.h"
@@ -120,9 +122,9 @@ class WebpDecoderTest : public testing::Test {
bool CheckCompressedImagesEqual(NSData* data_1,
NSData* data_2,
WebpDecoder::DecodedImageFormat format) {
- scoped_ptr<std::vector<uint8_t>> uncompressed_1(
+ std::unique_ptr<std::vector<uint8_t>> uncompressed_1(
DecompressData(data_1, format));
- scoped_ptr<std::vector<uint8_t>> uncompressed_2(
+ std::unique_ptr<std::vector<uint8_t>> uncompressed_2(
DecompressData(data_2, format));
if (uncompressed_1->size() != uncompressed_2->size()) {
DLOG(ERROR) << "Image sizes don't match";
« no previous file with comments | « components/webp_transcode/webp_decoder.h ('k') | components/webusb/webusb_detector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698