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_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',
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 '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',
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',
77 'gfx.gyp:gfx_geometry',
78 'gfx.gyp:gfx_test_support',
82 'sources': ['<@(_common_sources)'],
84 'sources': ['<@(_all_sources)'],
87 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
88 'msvs_disabled_warnings': [ 4267, ],
90 ['OS != "mac" and OS != "ios"', {
92 'transform_unittest.cc',
93 'interpolated_transform_unittest.cc',
98 '../../build/linux/system.gyp:fontconfig',
99 '../../build/linux/system.gyp:pangocairo',
102 'platform_font_pango_unittest.cc',
105 ['use_allocator!="none"', {
107 '../../base/allocator/allocator.gyp:allocator',
112 ['use_ozone==1 and use_pango==0', {
114 'canvas_unittest.cc',
115 'font_list_unittest.cc',
117 'text_elider_unittest.cc',
120 ['OS == "android"', {
122 '../../testing/android/native_test.gyp:native_test_native_code',
129 ['OS == "android"', {
132 'target_name': 'gfx_unittests_apk',
135 '../android/ui_android.gyp:ui_java',
139 'test_suite_name': 'gfx_unittests',
141 'includes': [ '../../build/apk_test.gypi' ],