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

Unified Diff: ui/gfx/geometry/cubic_bezier_unittest.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/gfx/gdi_util.cc ('k') | ui/gfx/harfbuzz_font_skia.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/geometry/cubic_bezier_unittest.cc
diff --git a/ui/gfx/geometry/cubic_bezier_unittest.cc b/ui/gfx/geometry/cubic_bezier_unittest.cc
index a69836185c9a642cf64c47cbcb2213b73fce3fbd..47d630aa2aff75a7628b1d161dd9a413315a9b7d 100644
--- a/ui/gfx/geometry/cubic_bezier_unittest.cc
+++ b/ui/gfx/geometry/cubic_bezier_unittest.cc
@@ -4,7 +4,8 @@
#include "ui/gfx/geometry/cubic_bezier.h"
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "testing/gtest/include/gtest/gtest.h"
namespace gfx {
@@ -80,7 +81,7 @@ TEST(CubicBezierTest, Range) {
double min, max;
// Derivative is a constant.
- scoped_ptr<CubicBezier> function(
+ std::unique_ptr<CubicBezier> function(
new CubicBezier(0.25, (1.0 / 3.0), 0.75, (2.0 / 3.0)));
function->Range(&min, &max);
EXPECT_EQ(0, min);
« no previous file with comments | « ui/gfx/gdi_util.cc ('k') | ui/gfx/harfbuzz_font_skia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698