summaryrefslogtreecommitdiffstats
path: root/cc/cc_tests.gyp
blob: efa102cc094268118723530007835e098f5d8a24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'variables': {
    'chromium_code': 0,
    'use_libcc_for_compositor%': 0,
    'cc_tests_source_files': [
      'hash_pair_unittest.cc',
      'CCActiveAnimationTest.cpp',
      'CCDamageTrackerTest.cpp',
      'CCDelayBasedTimeSourceTest.cpp',
      'CCDrawQuadTest.cpp',
      'CCDelegatedRendererLayerImplTest.cpp',
      'CCFrameRateControllerTest.cpp',
      'CCHeadsUpDisplayTest.cpp',
      'CCKeyframedAnimationCurveTest.cpp',
      'CCLayerAnimationControllerTest.cpp',
      'CCLayerImplTest.cpp',
      'CCLayerIteratorTest.cpp',
      'CCLayerQuadTest.cpp',
      'CCLayerSorterTest.cpp',
      'CCLayerTreeHostCommonTest.cpp',
      'CCLayerTreeHostImplTest.cpp',
      'CCLayerTreeHostTest.cpp',
      'CCMathUtilTest.cpp',
      'CCOcclusionTrackerTest.cpp',
      'CCPrioritizedTextureTest.cpp',
      'CCQuadCullerTest.cpp',
      'CCRendererSoftwareTest.cpp',
      'CCRenderPassTest.cpp',
      'CCRenderSurfaceFiltersTest.cpp',
      'CCRenderSurfaceTest.cpp',
      'CCRendererGLTest.cpp',
      'CCResourceProviderTest.cpp',
      'CCSchedulerStateMachineTest.cpp',
      'CCSchedulerTest.cpp',
      'CCScopedTextureTest.cpp',
      'CCScrollbarAnimationControllerLinearFadeTest.cpp',
      'CCSolidColorLayerImplTest.cpp',
      'CCTextureUpdateControllerTest.cpp',
      'CCThreadTaskTest.cpp',
      'CCThreadedTest.cpp',
      'CCThreadedTest.h',
      'CCTiledLayerImplTest.cpp',
      'CCTimerTest.cpp',
      'ContentLayerChromiumTest.cpp',
      'FloatQuadTest.cpp',
      'LayerChromiumTest.cpp',
      'ScrollbarLayerChromiumTest.cpp',
      'TextureCopierTest.cpp',
      'TextureLayerChromiumTest.cpp',
      'ThrottledTextureUploaderTest.cpp',
      'TiledLayerChromiumTest.cpp',
      'TreeSynchronizerTest.cpp',
    ],
    'cc_tests_support_files': [
      'test/CCAnimationTestCommon.cpp',
      'test/CCAnimationTestCommon.h',
      'test/CCGeometryTestUtils.cpp',
      'test/CCGeometryTestUtils.h',
      'test/CCLayerTestCommon.cpp',
      'test/CCLayerTestCommon.h',
      'test/CCOcclusionTrackerTestCommon.h',
      'test/CCSchedulerTestCommon.cpp',
      'test/CCSchedulerTestCommon.h',
      'test/CCRenderPassTestCommon.h',
      'test/CCTestCommon.h',
      'test/CCTiledLayerTestCommon.cpp',
      'test/CCTiledLayerTestCommon.h',
      'test/CompositorFakeWebGraphicsContext3D.h',
      'test/FakeCCGraphicsContext.h',
      'test/FakeCCLayerTreeHostClient.cpp',
      'test/FakeCCLayerTreeHostClient.h',
      'test/FakeGraphicsContext3DTest.cpp',
      'test/FakeWebCompositorSoftwareOutputDevice.h',
      'test/FakeWebCompositorOutputSurface.h',
      'test/FakeWebGraphicsContext3D.h',
      'test/FakeWebScrollbarThemeGeometry.h',
      'test/MockCCQuadCuller.cpp',
      'test/MockCCQuadCuller.h',
      'test/WebCompositorInitializer.h',

      'test/animation_test_common.h',
      'test/geometry_test_utils.h',
      'test/layer_test_common.h',
      'test/layer_tree_test_common.h',
      'test/occlusion_tracker_test_common.h',
      'test/render_pass_test_common.h',
      'test/scheduler_test_common.h',
      'test/test_common.h',
      'test/tiled_layer_test_common.h',
      'test/compositor_fake_web_graphics_context_3d.h',
      'test/fake_graphics_context.h',
      'test/fake_layer_tree_host_client.h',
      'test/fake_web_compositor_output_surface.h',
      'test/fake_web_compositor_software_output_device.h',
      'test/fake_web_graphics_context_3d.h',
      'test/fake_web_scrollbar_theme_geometry.h',
      'test/mock_quad_culler.h',
      'test/web_compositor_initializer.h',
    ],
  },
  'targets': [
    {
      'target_name': 'cc_unittests',
      'type': 'executable',
      'dependencies': [
        '../base/base.gyp:test_support_base',
        '../testing/gtest.gyp:gtest',
        '../testing/gmock.gyp:gmock',
      ],
      'sources': [
        'test/run_all_unittests.cc',
      ],
      'conditions': [
        ['use_libcc_for_compositor==1', {
          'dependencies': [
            '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf',
            '../skia/skia.gyp:skia',
            'cc.gyp:cc',
            'cc_test_support',
          ],
          'defines': [
            'USE_LIBCC_FOR_COMPOSITOR',
            'WTF_USE_ACCELERATED_COMPOSITING=1',
          ],
          'include_dirs': [
            'stubs',
            'test',
            '.',
            '../third_party/WebKit/Source/Platform/chromium',
          ],
          'sources': [
            '<@(cc_tests_source_files)',
          ],
        }],
      ],
    },
  ],
  'conditions': [
    ['use_libcc_for_compositor==1', {
      'targets': [
        {
          'target_name': 'cc_test_support',
          'type': 'static_library',
          'defines': [
            'WTF_USE_ACCELERATED_COMPOSITING=1',
          ],
          'include_dirs': [
            'stubs',
            'test',
            '.',
            '..',
            '../third_party/WebKit/Source/Platform/chromium',
          ],
          'dependencies': [
            '../ui/gl/gl.gyp:gl',
            '../testing/gtest.gyp:gtest',
            '../testing/gmock.gyp:gmock',
            '../skia/skia.gyp:skia',
            '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf',
            '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit_wtf_support',
            '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit',
            '../webkit/compositor_bindings/compositor_bindings.gyp:webkit_compositor_support',
            '../webkit/support/webkit_support.gyp:glue',
          ],
          'sources': [
            '<@(cc_tests_support_files)',
            'test/test_webkit_platform.cc',
            'test/test_webkit_platform.h',
          ],
        },
      ],
    }],
  ],
}