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

Unified Diff: ui/accessibility/ax_tree_serializer_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/accessibility/ax_node_data.h ('k') | ui/accessibility/ax_tree_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/ax_tree_serializer_unittest.cc
diff --git a/ui/accessibility/ax_tree_serializer_unittest.cc b/ui/accessibility/ax_tree_serializer_unittest.cc
index 0c7c32dc1fb013aa8ca907385df26a2155b111e1..dbb95684cc528645735203856aff672c75a696c4 100644
--- a/ui/accessibility/ax_tree_serializer_unittest.cc
+++ b/ui/accessibility/ax_tree_serializer_unittest.cc
@@ -2,17 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "ui/accessibility/ax_tree_serializer.h"
+
#include <stddef.h>
#include <stdint.h>
+#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"
#include "ui/accessibility/ax_serializable_tree.h"
#include "ui/accessibility/ax_tree.h"
-#include "ui/accessibility/ax_tree_serializer.h"
namespace ui {
@@ -35,13 +37,13 @@ class AXTreeSerializerTest : public testing::Test {
AXTreeUpdate treedata0_;
AXTreeUpdate treedata1_;
- scoped_ptr<AXSerializableTree> tree0_;
- scoped_ptr<AXSerializableTree> tree1_;
- scoped_ptr<AXTreeSource<const AXNode*, AXNodeData, AXTreeData> >
+ std::unique_ptr<AXSerializableTree> tree0_;
+ std::unique_ptr<AXSerializableTree> tree1_;
+ std::unique_ptr<AXTreeSource<const AXNode*, AXNodeData, AXTreeData>>
tree0_source_;
- scoped_ptr<AXTreeSource<const AXNode*, AXNodeData, AXTreeData> >
+ std::unique_ptr<AXTreeSource<const AXNode*, AXNodeData, AXTreeData>>
tree1_source_;
- scoped_ptr<BasicAXTreeSerializer> serializer_;
+ std::unique_ptr<BasicAXTreeSerializer> serializer_;
private:
DISALLOW_COPY_AND_ASSIGN(AXTreeSerializerTest);
« no previous file with comments | « ui/accessibility/ax_node_data.h ('k') | ui/accessibility/ax_tree_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698