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',
21 'ios/NSString+CrStringDrawing_unittest.mm',
22 'ios/uikit_util_unittest.mm',
24 'test/run_all_unittests.cc',
25 'text_elider_unittest.cc',
26 'text_utils_unittest.cc',
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',
36 'break_list_unittest.cc',
38 'canvas_unittest_mac.mm',
39 'codec/jpeg_codec_unittest.cc',
40 'codec/png_codec_unittest.cc',
41 'color_analysis_unittest.cc',
42 'color_utils_unittest.cc',
43 'display_change_notifier_unittest.cc',
44 'display_unittest.cc',
45 'font_fallback_mac_unittest.cc',
46 'font_list_unittest.cc',
47 'font_render_params_linux_unittest.cc',
48 'geometry/box_unittest.cc',
49 'geometry/cubic_bezier_unittest.cc',
50 'geometry/insets_unittest.cc',
51 'geometry/matrix3_unittest.cc',
52 'geometry/point3_unittest.cc',
53 'geometry/point_unittest.cc',
54 'geometry/quad_unittest.cc',
55 'geometry/rect_unittest.cc',
56 'geometry/safe_integer_conversions_unittest.cc',
57 'geometry/scroll_offset_unittest.cc',
58 'geometry/size_unittest.cc',
59 'geometry/vector2d_unittest.cc',
60 'geometry/vector3d_unittest.cc',
61 'image/image_mac_unittest.mm',
62 'image/image_util_unittest.cc',
63 'mac/coordinate_conversion_unittest.mm',
64 'nine_image_painter_unittest.cc',
65 'platform_font_linux_unittest.cc',
66 'platform_font_mac_unittest.mm',
67 'range/range_mac_unittest.mm',
68 'range/range_unittest.cc',
69 'range/range_win_unittest.cc',
70 'render_text_unittest.cc',
71 'sequential_id_generator_unittest.cc',
72 'shadow_value_unittest.cc',
73 'skbitmap_operations_unittest.cc',
74 'skrect_conversion_unittest.cc',
75 'transform_util_unittest.cc',
76 'utf16_indexing_unittest.cc',
79 '../../base/base.gyp:base',
80 '../../base/base.gyp:test_support_base',
81 '../../skia/skia.gyp:skia',
82 '../../testing/gtest.gyp:gtest',
83 '../../third_party/libpng/libpng.gyp:libpng',
84 '../base/ui_base.gyp:ui_base',
85 '../resources/ui_resources.gyp:ui_test_pak',
87 'gfx.gyp:gfx_geometry',
88 'gfx.gyp:gfx_test_support',
92 'sources': ['<@(_common_sources)'],
94 'sources': ['<@(_all_sources)'],
96 ['OS != "mac" and OS != "ios"', {
98 'interpolated_transform_unittest.cc',
99 'transform_unittest.cc',
102 ['OS == "android"', {
104 '../../testing/android/native_test.gyp:native_test_native_code',
106 # Do not run display_change_notifier_unittest.cc on Android because it
107 # does not compile display_observer.cc
109 'display_change_notifier_unittest.cc',
112 ['OS=="android" or OS=="ios"', {
114 'render_text_unittest.cc',
119 'chromeos/codec/jpeg_codec_robust_slow_unittest.cc',
124 'screen_unittest.cc',
128 'nine_image_painter_unittest.cc',
133 'font_fallback_win_unittest.cc',
134 'icon_util_unittest.cc',
135 'icon_util_unittests.rc',
136 'path_win_unittest.cc',
137 'platform_font_win_unittest.cc',
145 'AdditionalDependencies': [
157 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
158 'msvs_disabled_warnings': [ 4267, ],
164 ['OS == "android"', {
167 'target_name': 'gfx_unittests_apk',
170 '../android/ui_android.gyp:ui_java',
174 'test_suite_name': 'gfx_unittests',
176 'includes': [ '../../build/apk_test.gypi' ],
180 ['test_isolation_mode != "noop"', {
183 'target_name': 'gfx_unittests_run',
189 '../../build/isolate.gypi',
192 'gfx_unittests.isolate',
197 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',