| OLD | NEW |
| 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 |
| OLD | NEW |