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

Unified Diff: ui/gl/test/gl_test_helper.cc

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr 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 | « ui/gl/test/gl_image_test_template.h ('k') | ui/gl/wgl_api_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/test/gl_test_helper.cc
diff --git a/ui/gl/test/gl_test_helper.cc b/ui/gl/test/gl_test_helper.cc
index 5f462a328050421e430401a32823dfb0dccda34a..20a98494c9fa87f796a1830ea97d75e862076697 100644
--- a/ui/gl/test/gl_test_helper.cc
+++ b/ui/gl/test/gl_test_helper.cc
@@ -4,9 +4,9 @@
#include "ui/gl/test/gl_test_helper.h"
+#include <memory>
#include <string>
-#include "base/memory/scoped_ptr.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace gl {
@@ -53,7 +53,7 @@ bool GLTestHelper::CheckPixels(int x,
int height,
const uint8_t expected_color[4]) {
int size = width * height * 4;
- scoped_ptr<uint8_t[]> pixels(new uint8_t[size]);
+ std::unique_ptr<uint8_t[]> pixels(new uint8_t[size]);
const uint8_t kCheckClearValue = 123u;
memset(pixels.get(), kCheckClearValue, size);
glReadPixels(x, y, width, height, GL_RGBA, GL_UNSIGNED_BYTE, pixels.get());
« no previous file with comments | « ui/gl/test/gl_image_test_template.h ('k') | ui/gl/wgl_api_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698