Index: ui/snapshot/snapshot_mac_unittest.mm |
diff --git a/ui/snapshot/snapshot_mac_unittest.mm b/ui/snapshot/snapshot_mac_unittest.mm |
index 7387d6e27be883420d99497756300f90947e157f..d1d9250464012794bb20f25093d7326d35136a89 100644 |
--- a/ui/snapshot/snapshot_mac_unittest.mm |
+++ b/ui/snapshot/snapshot_mac_unittest.mm |
@@ -6,9 +6,10 @@ |
#import <Cocoa/Cocoa.h> |
+#include <memory> |
+ |
#include "base/mac/scoped_nsobject.h" |
#include "base/mac/sdk_forward_declarations.h" |
-#include "base/memory/scoped_ptr.h" |
#include "testing/platform_test.h" |
#include "ui/gfx/geometry/rect.h" |
@@ -28,7 +29,7 @@ TEST_F(GrabWindowSnapshotTest, TestGrabWindowSnapshot) { |
[window setBackgroundColor:[NSColor whiteColor]]; |
[window makeKeyAndOrderFront:NSApp]; |
- scoped_ptr<std::vector<unsigned char> > png_representation( |
+ std::unique_ptr<std::vector<unsigned char>> png_representation( |
new std::vector<unsigned char>); |
gfx::Rect bounds = gfx::Rect(0, 0, frame.size.width, frame.size.height); |
EXPECT_TRUE(ui::GrabWindowSnapshot(window, png_representation.get(), |