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

Side by Side Diff: ui/views/mus/clipboard_unittest.cc

Issue 2011833003: Implement ui::ClipboardMus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch cleanup. Created 4 years, 7 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 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"
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698