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

Side by Side Diff: ui/views/test/default_platform_test_helper.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
« no previous file with comments | « ui/views/test/combobox_test_api.cc ('k') | ui/views/test/event_generator_delegate_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "base/memory/ptr_util.h"
5 #include "ui/views/test/platform_test_helper.h" 6 #include "ui/views/test/platform_test_helper.h"
6 7
7 namespace views { 8 namespace views {
8 namespace { 9 namespace {
9 10
10 class DefaultPlatformTestHelper : public PlatformTestHelper { 11 class DefaultPlatformTestHelper : public PlatformTestHelper {
11 public: 12 public:
12 DefaultPlatformTestHelper() {} 13 DefaultPlatformTestHelper() {}
13 14
14 ~DefaultPlatformTestHelper() override {} 15 ~DefaultPlatformTestHelper() override {}
15 16
16 bool IsMus() const override { return false; } 17 bool IsMus() const override { return false; }
17 18
18 private: 19 private:
19 DISALLOW_COPY_AND_ASSIGN(DefaultPlatformTestHelper); 20 DISALLOW_COPY_AND_ASSIGN(DefaultPlatformTestHelper);
20 }; 21 };
21 22
22 } // namespace 23 } // namespace
23 24
24 // static 25 // static
25 scoped_ptr<PlatformTestHelper> PlatformTestHelper::Create() { 26 std::unique_ptr<PlatformTestHelper> PlatformTestHelper::Create() {
26 return make_scoped_ptr(new DefaultPlatformTestHelper); 27 return base::WrapUnique(new DefaultPlatformTestHelper);
27 } 28 }
28 29
29 } // namespace views 30 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/test/combobox_test_api.cc ('k') | ui/views/test/event_generator_delegate_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698