| OLD | NEW |
| 1 // Copyright 2014 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 "ui/base/clipboard/clipboard.h" | 5 #include "ui/views/mus/clipboard_mus.h" |
| 6 | 6 |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 #include "ui/events/platform/platform_event_source.h" |
| 8 | 9 |
| 9 namespace ui { | 10 namespace ui { |
| 10 | 11 |
| 11 struct PlatformClipboardTraits { | 12 struct PlatformClipboardTraits { |
| 13 static std::unique_ptr<PlatformEventSource> GetEventSource() { |
| 14 return std::unique_ptr<PlatformEventSource>(); |
| 15 } |
| 16 |
| 12 static Clipboard* Create() { return Clipboard::GetForCurrentThread(); } | 17 static Clipboard* Create() { return Clipboard::GetForCurrentThread(); } |
| 13 | 18 |
| 14 static void Destroy(Clipboard* clipboard) { | 19 static void Destroy(Clipboard* clipboard) { |
| 15 ASSERT_EQ(Clipboard::GetForCurrentThread(), clipboard); | 20 ASSERT_EQ(Clipboard::GetForCurrentThread(), clipboard); |
| 16 Clipboard::DestroyClipboardForCurrentThread(); | 21 Clipboard::DestroyClipboardForCurrentThread(); |
| 17 } | 22 } |
| 18 }; | 23 }; |
| 19 | 24 |
| 20 typedef PlatformClipboardTraits TypesToTest; | 25 typedef PlatformClipboardTraits TypesToTest; |
| 21 | 26 |
| 22 } // namespace ui | 27 } // namespace ui |
| 23 | 28 |
| 24 #include "ui/base/clipboard/clipboard_test_template.h" | 29 #include "ui/base/clipboard/clipboard_test_template.h" |
| OLD | NEW |