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

Side by Side Diff: ui/base/clipboard/clipboard_unittest.cc

Issue 1027993002: Allow unit tests to force serial execution in the test launcher. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TestID experiment Created 5 years, 9 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
« no previous file with comments | « ui/base/clipboard/clipboard_test_template.h ('k') | ui/base/test/test_clipboard_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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/base/clipboard/clipboard.h"
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 namespace ui { 9 namespace ui {
10 10
11 struct PlatformClipboardTraits { 11 struct PlatformClipboardTraits {
12 static Clipboard* Create() { return Clipboard::GetForCurrentThread(); } 12 static Clipboard* Create() { return Clipboard::GetForCurrentThread(); }
13 13
14 static void Destroy(Clipboard* clipboard) { 14 static void Destroy(Clipboard* clipboard) {
15 ASSERT_EQ(Clipboard::GetForCurrentThread(), clipboard); 15 ASSERT_EQ(Clipboard::GetForCurrentThread(), clipboard);
16 Clipboard::DestroyClipboardForCurrentThread(); 16 Clipboard::DestroyClipboardForCurrentThread();
17 } 17 }
18 }; 18 };
19 19
20 typedef PlatformClipboardTraits TypesToTest; 20 #define CLIPBOARD_TEST_FIXTURE_NAME PlatformClipboardTest
21 #define CLIPBOARD_TYPE_TO_TEST PlatformClipboardTraits
22 #define CLIPBOARD_TESTS_RUN_SERIALLY
21 23
22 } // namespace ui 24 } // namespace ui
23 25
24 #include "ui/base/clipboard/clipboard_test_template.h" 26 #include "ui/base/clipboard/clipboard_test_template.h"
OLDNEW
« no previous file with comments | « ui/base/clipboard/clipboard_test_template.h ('k') | ui/base/test/test_clipboard_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698