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

Unified Diff: chrome/utility/cloud_print/pwg_encoder_unittest.cc

Issue 1899083002: Convert //chrome 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 | « chrome/utility/cloud_print/pwg_encoder.cc ('k') | chrome/utility/extensions/extensions_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/cloud_print/pwg_encoder_unittest.cc
diff --git a/chrome/utility/cloud_print/pwg_encoder_unittest.cc b/chrome/utility/cloud_print/pwg_encoder_unittest.cc
index a60b6f43ac4e08c1cfb08476eab5c2378889cd96..8264ed04513d5d6067bb61ee7aefc6c7990afd57 100644
--- a/chrome/utility/cloud_print/pwg_encoder_unittest.cc
+++ b/chrome/utility/cloud_print/pwg_encoder_unittest.cc
@@ -2,13 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "chrome/utility/cloud_print/pwg_encoder.h"
+
#include <stdint.h>
+#include <memory>
+
#include "base/files/file_util.h"
-#include "base/memory/scoped_ptr.h"
#include "base/sha1.h"
#include "chrome/utility/cloud_print/bitmap_image.h"
-#include "chrome/utility/cloud_print/pwg_encoder.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace cloud_print {
@@ -26,10 +28,9 @@ const int kRasterWidth = 612;
const int kRasterHeight = 792;
const int kRasterDPI = 72;
-scoped_ptr<BitmapImage> MakeSampleBitmap() {
- scoped_ptr<BitmapImage> bitmap_image(
- new BitmapImage(gfx::Size(kRasterWidth, kRasterHeight),
- BitmapImage::RGBA));
+std::unique_ptr<BitmapImage> MakeSampleBitmap() {
+ std::unique_ptr<BitmapImage> bitmap_image(new BitmapImage(
+ gfx::Size(kRasterWidth, kRasterHeight), BitmapImage::RGBA));
uint32_t* bitmap_data =
reinterpret_cast<uint32_t*>(bitmap_image->pixel_data());
@@ -67,7 +68,7 @@ scoped_ptr<BitmapImage> MakeSampleBitmap() {
TEST(PwgRasterTest, CompareWithMaster) {
std::string output;
PwgEncoder encoder;
- scoped_ptr<BitmapImage> image = MakeSampleBitmap();
+ std::unique_ptr<BitmapImage> image = MakeSampleBitmap();
PwgHeaderInfo header_info;
header_info.dpi = kRasterDPI;
header_info.total_pages = 1;
« no previous file with comments | « chrome/utility/cloud_print/pwg_encoder.cc ('k') | chrome/utility/extensions/extensions_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698