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

Side by Side Diff: ui/gfx/gfx_tests.gyp

Issue 280973003: Move a good set of gfx unit tests into gfx_unittests target. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: REBASE Created 6 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 | Annotate | Revision Log
« no previous file with comments | « ui/gfx/gfx.gyp ('k') | ui/gfx/test/DEPS » ('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 {
6 'variables': {
7 'chromium_code': 1,
8 },
9 'targets': [
10 {
11 'target_name': 'gfx_unittests',
12 'type': '<(gtest_target_type)',
13 # iOS uses a small subset of ui. common_sources are the only files that
14 # are built on iOS.
15 'common_sources' : [
16 'font_unittest.cc',
17 'image/image_family_unittest.cc',
18 'image/image_skia_unittest.cc',
19 'image/image_unittest.cc',
20 'image/image_unittest_util.cc',
21 'image/image_unittest_util.h',
22 'image/image_unittest_util_ios.mm',
23 'image/image_unittest_util_mac.mm',
24 'test/run_all_unittests.cc',
25 'text_elider_unittest.cc',
26 'text_utils_unittest.cc',
27 ],
28 'all_sources': [
29 '<@(_common_sources)',
30 'animation/animation_container_unittest.cc',
31 'animation/animation_unittest.cc',
32 'animation/multi_animation_unittest.cc',
33 'animation/slide_animation_unittest.cc',
34 'animation/tween_unittest.cc',
35 'blit_unittest.cc',
36 'break_list_unittest.cc',
37 'codec/jpeg_codec_unittest.cc',
38 'codec/png_codec_unittest.cc',
39 'color_analysis_unittest.cc',
40 'color_utils_unittest.cc',
41 'display_unittest.cc',
42 'geometry/box_unittest.cc',
43 'geometry/cubic_bezier_unittest.cc',
44 'geometry/insets_unittest.cc',
45 'geometry/matrix3_unittest.cc',
46 'geometry/point_unittest.cc',
47 'geometry/point3_unittest.cc',
48 'geometry/quad_unittest.cc',
49 'geometry/r_tree_unittest.cc',
50 'geometry/rect_unittest.cc',
51 'geometry/safe_integer_conversions_unittest.cc',
52 'geometry/size_unittest.cc',
53 'geometry/vector2d_unittest.cc',
54 'geometry/vector3d_unittest.cc',
55 'image/image_mac_unittest.mm',
56 'image/image_util_unittest.cc',
57 'range/range_mac_unittest.mm',
58 'range/range_unittest.cc',
59 'range/range_win_unittest.cc',
60 'sequential_id_generator_unittest.cc',
61 'shadow_value_unittest.cc',
62 'skbitmap_operations_unittest.cc',
63 'skrect_conversion_unittest.cc',
64 'transform_util_unittest.cc',
65 'utf16_indexing_unittest.cc',
66 ],
67 'dependencies': [
68 '../../base/base.gyp:base',
69 '../../base/base.gyp:test_support_base',
70 '../../skia/skia.gyp:skia',
71 '../../testing/gtest.gyp:gtest',
72 '../../third_party/libpng/libpng.gyp:libpng',
73 '../base/ui_base.gyp:ui_base',
74 'gfx.gyp:gfx',
75 'gfx.gyp:gfx_geometry',
76 'gfx.gyp:gfx_test_support',
77 ],
78 'conditions': [
79 ['OS == "ios"', {
80 'sources': ['<@(_common_sources)'],
81 }, { # OS != "ios"
82 'sources': ['<@(_all_sources)'],
83 }],
84 ['OS == "win"', {
85 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
86 'msvs_disabled_warnings': [ 4267, ],
87 }],
88 ['OS != "mac" and OS != "ios"', {
89 'sources': [
90 'transform_unittest.cc',
91 'interpolated_transform_unittest.cc',
92 ],
93 }],
94 ['use_pango == 1', {
95 'dependencies': [
96 '../../build/linux/system.gyp:fontconfig',
97 '../../build/linux/system.gyp:pangocairo',
98 ],
99 'sources': [
100 'platform_font_pango_unittest.cc',
101 ],
102 'conditions': [
103 ['use_allocator!="none"', {
104 'dependencies': [
105 '../../base/allocator/allocator.gyp:allocator',
106 ],
107 }],
108 ],
109 }],
110 ['use_ozone==1 and use_pango==0', {
111 'sources!': [
112 'font_unittest.cc',
113 'text_elider_unittest.cc',
114 ],
115 }],
116 ],
117 }
118 ],
119 'conditions': [
120 # Special target to wrap a gtest_target_type==shared_library
121 # gfx_unittests into an android apk for execution.
122 # See base.gyp for TODO(jrg)s about this strategy.
123 ['OS == "android" and gtest_target_type == "shared_library"', {
124 'targets': [
125 {
126 'target_name': 'gfx_unittests_apk',
127 'type': 'none',
128 'dependencies': [
129 'gfx_unittests',
130 ],
131 'variables': {
132 'test_suite_name': 'gfx_unittests',
133 },
134 'includes': [ '../../build/apk_test.gypi' ],
135 },
136 ],
137 }],
138 ],
139 }
OLDNEW
« no previous file with comments | « ui/gfx/gfx.gyp ('k') | ui/gfx/test/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698