Performance histograms for extension content verification
[chromium-blink-merge.git] / ui / gfx / gfx_tests.gyp
blobdda6d142ef3246905dcee07cd4161ab32b8c9437
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.
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         'canvas_unittest.cc',
38         'codec/jpeg_codec_unittest.cc',
39         'codec/png_codec_unittest.cc',
40         'color_analysis_unittest.cc',
41         'color_utils_unittest.cc',
42         'display_unittest.cc',
43         'font_list_unittest.cc',
44         'geometry/box_unittest.cc',
45         'geometry/cubic_bezier_unittest.cc',
46         'geometry/insets_unittest.cc',
47         'geometry/matrix3_unittest.cc',
48         'geometry/point_unittest.cc',
49         'geometry/point3_unittest.cc',
50         'geometry/quad_unittest.cc',
51         'geometry/r_tree_unittest.cc',
52         'geometry/rect_unittest.cc',
53         'geometry/safe_integer_conversions_unittest.cc',
54         'geometry/size_unittest.cc',
55         'geometry/vector2d_unittest.cc',
56         'geometry/vector3d_unittest.cc',
57         'image/image_mac_unittest.mm',
58         'image/image_util_unittest.cc',
59         'range/range_mac_unittest.mm',
60         'range/range_unittest.cc',
61         'range/range_win_unittest.cc',
62         'sequential_id_generator_unittest.cc',
63         'shadow_value_unittest.cc',
64         'skbitmap_operations_unittest.cc',
65         'skrect_conversion_unittest.cc',
66         'transform_util_unittest.cc',
67         'utf16_indexing_unittest.cc',
68       ],
69       'dependencies': [
70         '../../base/base.gyp:base',
71         '../../base/base.gyp:test_support_base',
72         '../../skia/skia.gyp:skia',
73         '../../testing/gtest.gyp:gtest',
74         '../../third_party/libpng/libpng.gyp:libpng',
75         '../base/ui_base.gyp:ui_base',
76         'gfx.gyp:gfx',
77         'gfx.gyp:gfx_geometry',
78         'gfx.gyp:gfx_test_support',
79       ],
80       'conditions': [
81         ['OS == "ios"', {
82           'sources': ['<@(_common_sources)'],
83         }, {  # OS != "ios"
84           'sources': ['<@(_all_sources)'],
85         }],
86         ['OS == "win"', {
87           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
88           'msvs_disabled_warnings': [ 4267, ],
89         }],
90         ['OS != "mac" and OS != "ios"', {
91           'sources': [
92             'transform_unittest.cc',
93             'interpolated_transform_unittest.cc',
94           ],
95         }],
96         ['use_pango == 1', {
97           'dependencies': [
98             '../../build/linux/system.gyp:fontconfig',
99             '../../build/linux/system.gyp:pangocairo',
100           ],
101           'sources': [
102             'platform_font_pango_unittest.cc',
103           ],
104           'conditions': [
105             ['use_allocator!="none"', {
106               'dependencies': [
107                 '../../base/allocator/allocator.gyp:allocator',
108               ],
109             }],
110           ],
111         }],
112         ['use_ozone==1 and use_pango==0', {
113           'sources!': [
114             'canvas_unittest.cc',
115             'font_list_unittest.cc',
116             'font_unittest.cc',
117             'text_elider_unittest.cc',
118           ],
119         }],
120         ['OS == "android"', {
121           'dependencies': [
122             '../../testing/android/native_test.gyp:native_test_native_code',
123           ],
124         }],
125       ],
126     }
127   ],
128   'conditions': [
129     ['OS == "android"', {
130       'targets': [
131         {
132           'target_name': 'gfx_unittests_apk',
133           'type': 'none',
134           'dependencies': [
135             '../android/ui_android.gyp:ui_java',
136             'gfx_unittests',
137           ],
138           'variables': {
139             'test_suite_name': 'gfx_unittests',
140           },
141           'includes': [ '../../build/apk_test.gypi' ],
142         },
143       ],
144     }],
145   ],