OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Note: This header doesn't use REGISTER_TYPED_TEST_CASE_P like most | 5 // Note: This header doesn't use REGISTER_TYPED_TEST_CASE_P like most |
6 // type-parameterized gtests. There are lot of test cases in here that are only | 6 // type-parameterized gtests. There are lot of test cases in here that are only |
7 // enabled on certain platforms. However, preprocessor directives in macro | 7 // enabled on certain platforms. However, preprocessor directives in macro |
8 // arguments result in undefined behavior (and don't work on MSVC). Instead, | 8 // arguments result in undefined behavior (and don't work on MSVC). Instead, |
9 // 'parameterized' tests should typedef TypesToTest (which is used to | 9 // 'parameterized' tests should typedef TypesToTest (which is used to |
10 // instantiate the tests using the TYPED_TEST_CASE macro) and then #include this | 10 // instantiate the tests using the TYPED_TEST_CASE macro) and then #include this |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "base/strings/utf_string_conversions.h" | 25 #include "base/strings/utf_string_conversions.h" |
26 #include "testing/gtest/include/gtest/gtest.h" | 26 #include "testing/gtest/include/gtest/gtest.h" |
27 #include "testing/platform_test.h" | 27 #include "testing/platform_test.h" |
28 #include "third_party/skia/include/core/SkBitmap.h" | 28 #include "third_party/skia/include/core/SkBitmap.h" |
29 #include "third_party/skia/include/core/SkColor.h" | 29 #include "third_party/skia/include/core/SkColor.h" |
30 #include "third_party/skia/include/core/SkScalar.h" | 30 #include "third_party/skia/include/core/SkScalar.h" |
31 #include "third_party/skia/include/core/SkUnPreMultiply.h" | 31 #include "third_party/skia/include/core/SkUnPreMultiply.h" |
32 #include "ui/base/clipboard/clipboard.h" | 32 #include "ui/base/clipboard/clipboard.h" |
33 #include "ui/base/clipboard/scoped_clipboard_writer.h" | 33 #include "ui/base/clipboard/scoped_clipboard_writer.h" |
34 #include "ui/base/test/test_clipboard.h" | 34 #include "ui/base/test/test_clipboard.h" |
35 #include "ui/gfx/size.h" | 35 #include "ui/gfx/geometry/size.h" |
36 | 36 |
37 #if defined(OS_WIN) | 37 #if defined(OS_WIN) |
38 #include "ui/base/clipboard/clipboard_util_win.h" | 38 #include "ui/base/clipboard/clipboard_util_win.h" |
39 #endif | 39 #endif |
40 | 40 |
41 #if defined(USE_AURA) | 41 #if defined(USE_AURA) |
42 #include "ui/events/platform/platform_event_source.h" | 42 #include "ui/events/platform/platform_event_source.h" |
43 #endif | 43 #endif |
44 | 44 |
45 using base::ASCIIToUTF16; | 45 using base::ASCIIToUTF16; |
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
638 ScopedClipboardWriter scw(CLIPBOARD_TYPE_COPY_PASTE); | 638 ScopedClipboardWriter scw(CLIPBOARD_TYPE_COPY_PASTE); |
639 scw.WritePickledData(Pickle(), Clipboard::GetPlainTextFormatType()); | 639 scw.WritePickledData(Pickle(), Clipboard::GetPlainTextFormatType()); |
640 } | 640 } |
641 | 641 |
642 TYPED_TEST(ClipboardTest, WriteImageEmptyParams) { | 642 TYPED_TEST(ClipboardTest, WriteImageEmptyParams) { |
643 ScopedClipboardWriter scw(CLIPBOARD_TYPE_COPY_PASTE); | 643 ScopedClipboardWriter scw(CLIPBOARD_TYPE_COPY_PASTE); |
644 scw.WriteImage(SkBitmap()); | 644 scw.WriteImage(SkBitmap()); |
645 } | 645 } |
646 | 646 |
647 } // namespace ui | 647 } // namespace ui |
OLD | NEW |