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

Side by Side Diff: ui/base/test/test_clipboard_unittest.cc

Issue 720373003: Add FakeClipboard implementation for unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: WINDOWS!!! Created 6 years, 1 month 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/base/test/test_clipboard.cc ('k') | ui/base/ui_base.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/base/test/test_clipboard.h"
6
7 #include "testing/gtest/include/gtest/gtest.h"
8
9 namespace ui {
10
11 struct TestClipboardTraits {
12 static Clipboard* Create() {
13 TestClipboard::UseForCurrentThread();
14 return Clipboard::GetForCurrentThread();
15 }
16
17 static void Destroy(Clipboard* clipboard) {
18 ASSERT_EQ(Clipboard::GetForCurrentThread(), clipboard);
19 Clipboard::DestroyClipboardForCurrentThread();
20 }
21 };
22
23 typedef TestClipboardTraits TypesToTest;
24
25 } // namespace ui
26
27 #include "ui/base/clipboard/clipboard_test_template.h"
OLDNEW
« no previous file with comments | « ui/base/test/test_clipboard.cc ('k') | ui/base/ui_base.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698