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

Side by Side Diff: ui/compositor/test/test_compositor_host_ozone.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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/compositor/test/test_compositor_host.h" 5 #include "ui/compositor/test/test_compositor_host.h"
6 6
7 #include <memory>
8
7 #include "base/bind.h" 9 #include "base/bind.h"
8 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
9 #include "base/logging.h" 11 #include "base/logging.h"
10 #include "base/macros.h" 12 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
13 #include "base/thread_task_runner_handle.h" 14 #include "base/thread_task_runner_handle.h"
14 #include "ui/compositor/compositor.h" 15 #include "ui/compositor/compositor.h"
15 #include "ui/gfx/geometry/rect.h" 16 #include "ui/gfx/geometry/rect.h"
16 17
17 namespace ui { 18 namespace ui {
18 19
19 class TestCompositorHostOzone : public TestCompositorHost { 20 class TestCompositorHostOzone : public TestCompositorHost {
20 public: 21 public:
21 TestCompositorHostOzone(const gfx::Rect& bounds, 22 TestCompositorHostOzone(const gfx::Rect& bounds,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 } 63 }
63 64
64 // static 65 // static
65 TestCompositorHost* TestCompositorHost::Create( 66 TestCompositorHost* TestCompositorHost::Create(
66 const gfx::Rect& bounds, 67 const gfx::Rect& bounds,
67 ui::ContextFactory* context_factory) { 68 ui::ContextFactory* context_factory) {
68 return new TestCompositorHostOzone(bounds, context_factory); 69 return new TestCompositorHostOzone(bounds, context_factory);
69 } 70 }
70 71
71 } // namespace ui 72 } // namespace ui
OLDNEW
« no previous file with comments | « ui/compositor/test/test_compositor_host_mac.mm ('k') | ui/compositor/test/test_compositor_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698