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

Unified Diff: ui/accessibility/ax_generated_tree_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/accelerated_widget_mac/io_surface_context.h ('k') | ui/accessibility/ax_node_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/ax_generated_tree_unittest.cc
diff --git a/ui/accessibility/ax_generated_tree_unittest.cc b/ui/accessibility/ax_generated_tree_unittest.cc
index f844f259db1224f8a59c3e307293f8bee6ed8e39..17173f77ada4a8b03c39aca140f1fb28d0f0a9eb 100644
--- a/ui/accessibility/ax_generated_tree_unittest.cc
+++ b/ui/accessibility/ax_generated_tree_unittest.cc
@@ -2,8 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/string_number_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/accessibility/ax_node.h"
@@ -153,7 +154,7 @@ TEST(AXGeneratedTreeTest, SerializeGeneratedTrees) {
// Start by serializing tree0 and unserializing it into a new
// empty tree |dst_tree|.
- scoped_ptr<AXTreeSource<const AXNode*, AXNodeData, AXTreeData> >
+ std::unique_ptr<AXTreeSource<const AXNode*, AXNodeData, AXTreeData>>
tree0_source(tree0.CreateTreeSource());
AXTreeSerializer<const AXNode*, AXNodeData, AXTreeData> serializer(
tree0_source.get());
@@ -168,7 +169,7 @@ TEST(AXGeneratedTreeTest, SerializeGeneratedTrees) {
// Next, pretend that tree0 turned into tree1, and serialize
// a sequence of updates to |dst_tree| to match.
- scoped_ptr<AXTreeSource<const AXNode*, AXNodeData, AXTreeData> >
+ std::unique_ptr<AXTreeSource<const AXNode*, AXNodeData, AXTreeData>>
tree1_source(tree1.CreateTreeSource());
serializer.ChangeTreeSourceForTesting(tree1_source.get());
« no previous file with comments | « ui/accelerated_widget_mac/io_surface_context.h ('k') | ui/accessibility/ax_node_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698