| 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 "base/memory/ptr_util.h" |
| 6 #include "ui/views/test/platform_test_helper.h" | 6 #include "ui/views/test/platform_test_helper.h" |
| 7 | 7 |
| 8 namespace views { | 8 namespace views { |
| 9 namespace { | 9 namespace { |
| 10 | 10 |
| 11 class DefaultPlatformTestHelper : public PlatformTestHelper { | 11 class DefaultPlatformTestHelper : public PlatformTestHelper { |
| 12 public: | 12 public: |
| 13 DefaultPlatformTestHelper() {} | 13 DefaultPlatformTestHelper() {} |
| 14 | 14 |
| 15 ~DefaultPlatformTestHelper() override {} | 15 ~DefaultPlatformTestHelper() override {} |
| 16 | 16 |
| 17 bool IsMus() const override { return false; } | |
| 18 | |
| 19 private: | 17 private: |
| 20 DISALLOW_COPY_AND_ASSIGN(DefaultPlatformTestHelper); | 18 DISALLOW_COPY_AND_ASSIGN(DefaultPlatformTestHelper); |
| 21 }; | 19 }; |
| 22 | 20 |
| 23 } // namespace | 21 } // namespace |
| 24 | 22 |
| 25 // static | 23 // static |
| 26 std::unique_ptr<PlatformTestHelper> PlatformTestHelper::Create() { | 24 std::unique_ptr<PlatformTestHelper> PlatformTestHelper::Create() { |
| 27 return base::WrapUnique(new DefaultPlatformTestHelper); | 25 return base::WrapUnique(new DefaultPlatformTestHelper); |
| 28 } | 26 } |
| 29 | 27 |
| 28 // static |
| 29 bool PlatformTestHelper::IsMus() { |
| 30 return false; |
| 31 } |
| 32 |
| 30 } // namespace views | 33 } // namespace views |
| OLD | NEW |