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.
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
17 'image/image_family_unittest.cc',
18 'image/image_ios_unittest.mm',
19 'image/image_skia_unittest.cc',
20 'image/image_unittest.cc',
22 'test/run_all_unittests.cc',
23 'text_elider_unittest.cc',
24 'text_utils_unittest.cc',
27 '<@(_common_sources)',
28 'animation/animation_container_unittest.cc',
29 'animation/animation_unittest.cc',
30 'animation/multi_animation_unittest.cc',
31 'animation/slide_animation_unittest.cc',
32 'animation/tween_unittest.cc',
34 'break_list_unittest.cc',
36 'canvas_unittest_mac.mm',
37 'codec/jpeg_codec_unittest.cc',
38 'codec/png_codec_unittest.cc',
39 'color_analysis_unittest.cc',
40 'color_profile_mac_unittest.mm',
41 'color_utils_unittest.cc',
42 'display_change_notifier_unittest.cc',
43 'display_unittest.cc',
44 'font_list_unittest.cc',
45 'geometry/box_unittest.cc',
46 'geometry/cubic_bezier_unittest.cc',
47 'geometry/insets_unittest.cc',
48 'geometry/matrix3_unittest.cc',
49 'geometry/point_unittest.cc',
50 'geometry/point3_unittest.cc',
51 'geometry/quad_unittest.cc',
52 'geometry/r_tree_unittest.cc',
53 'geometry/rect_unittest.cc',
54 'geometry/safe_integer_conversions_unittest.cc',
55 'geometry/scroll_offset_unittest.cc',
56 'geometry/size_unittest.cc',
57 'geometry/vector2d_unittest.cc',
58 'geometry/vector3d_unittest.cc',
59 'image/image_mac_unittest.mm',
60 'image/image_util_unittest.cc',
61 'mac/coordinate_conversion_unittest.mm',
62 'platform_font_mac_unittest.mm',
63 'range/range_mac_unittest.mm',
64 'range/range_unittest.cc',
65 'range/range_win_unittest.cc',
66 'render_text_unittest.cc',
67 'sequential_id_generator_unittest.cc',
68 'shadow_value_unittest.cc',
69 'skbitmap_operations_unittest.cc',
70 'skrect_conversion_unittest.cc',
71 'transform_util_unittest.cc',
72 'utf16_indexing_unittest.cc',
75 '../../base/base.gyp:base',
76 '../../base/base.gyp:test_support_base',
77 '../../skia/skia.gyp:skia',
78 '../../testing/gtest.gyp:gtest',
79 '../../third_party/libpng/libpng.gyp:libpng',
80 '../base/ui_base.gyp:ui_base',
81 '../resources/ui_resources.gyp:ui_test_pak',
83 'gfx.gyp:gfx_geometry',
84 'gfx.gyp:gfx_test_support',
88 'sources': ['<@(_common_sources)'],
90 'sources': ['<@(_all_sources)'],
92 ['OS != "mac" and OS != "ios"', {
94 'transform_unittest.cc',
95 'interpolated_transform_unittest.cc',
100 '../../build/linux/system.gyp:fontconfig',
101 '../../build/linux/system.gyp:pangocairo',
104 'font_render_params_linux_unittest.cc',
105 'platform_font_pango_unittest.cc',
108 ['use_allocator!="none"', {
110 '../../base/allocator/allocator.gyp:allocator',
115 ['use_ozone==1 and use_pango==0', {
117 'canvas_unittest.cc',
118 'font_list_unittest.cc',
120 'render_text_unittest.cc',
121 'text_elider_unittest.cc',
124 ['OS == "android"', {
126 '../../testing/android/native_test.gyp:native_test_native_code',
128 # Do not run display_change_notifier_unittest.cc on Android because it
129 # does not compile display_observer.cc
131 'display_change_notifier_unittest.cc',
134 ['OS=="android" or OS=="ios"', {
136 'render_text_unittest.cc',
141 'screen_unittest.cc',
146 'color_profile_win_unittest.cc',
147 'font_fallback_win_unittest.cc',
148 'icon_util_unittest.cc',
149 'icon_util_unittests.rc',
150 'path_win_unittest.cc',
151 'platform_font_win_unittest.cc',
159 'AdditionalDependencies': [
171 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
172 'msvs_disabled_warnings': [ 4267, ],
178 ['OS == "android"', {
181 'target_name': 'gfx_unittests_apk',
184 '../android/ui_android.gyp:ui_java',
188 'test_suite_name': 'gfx_unittests',
190 'includes': [ '../../build/apk_test.gypi' ],
194 ['test_isolation_mode != "noop"', {
197 'target_name': 'gfx_unittests_run',
203 '../../build/isolate.gypi',
206 'gfx_unittests.isolate',
211 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',