OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 component("compositor") { | 8 component("compositor") { |
9 sources = [ | 9 sources = [ |
10 "closure_animation_observer.cc", | 10 "closure_animation_observer.cc", |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 configs += [ "//build/config/linux:x11" ] | 133 configs += [ "//build/config/linux:x11" ] |
134 deps += [ "//ui/gfx/x" ] | 134 deps += [ "//ui/gfx/x" ] |
135 } | 135 } |
136 | 136 |
137 if (use_ozone) { | 137 if (use_ozone) { |
138 sources += [ "test/test_compositor_host_ozone.cc" ] | 138 sources += [ "test/test_compositor_host_ozone.cc" ] |
139 } else if (use_x11) { | 139 } else if (use_x11) { |
140 sources += [ "test/test_compositor_host_x11.cc" ] | 140 sources += [ "test/test_compositor_host_x11.cc" ] |
141 } | 141 } |
142 } | 142 } |
143 # TODO(GYP) enable this when all dependencies are complete and it links. | 143 |
144 #test("compositor_unittests") { | 144 test("compositor_unittests") { |
145 # sources = [ | 145 sources = [ |
146 # "layer_animation_element_unittest.cc", | 146 "layer_animation_element_unittest.cc", |
147 # "layer_animation_sequence_unittest.cc", | 147 "layer_animation_sequence_unittest.cc", |
148 # "layer_animator_unittest.cc", | 148 "layer_animator_unittest.cc", |
149 # "layer_owner_unittest.cc", | 149 "layer_owner_unittest.cc", |
150 # "layer_unittest.cc", | 150 "layer_unittest.cc", |
151 # "run_all_unittests.cc", | 151 "run_all_unittests.cc", |
152 # "transform_animation_curve_adapter_unittest.cc", | 152 "transform_animation_curve_adapter_unittest.cc", |
153 # ] | 153 ] |
154 # | 154 |
155 # deps = [ | 155 deps = [ |
156 # ":compositor", | 156 ":compositor", |
157 # ":test_support", | 157 ":test_support", |
158 # "//base", | 158 "//base", |
159 # "//base/allocator", | 159 "//base/allocator", |
160 # "//base/test:test_support", | 160 "//base/test:test_support", |
161 # "//cc", | 161 "//cc", |
162 # "//cc:test_support", | 162 "//cc:test_support", |
163 # "//skia", | 163 "//skia", |
164 # "//testing/gtest", | 164 "//testing/gtest", |
165 # "//ui/base", | 165 "//ui/base", |
166 # "//ui/gfx", | 166 "//ui/gfx", |
167 # "//ui/gfx/geometry", | 167 "//ui/gfx/geometry", |
168 # "//ui/gl", | 168 "//ui/gl", |
169 # "//ui/resources", | 169 "//ui/resources", |
170 # ] | 170 ] |
171 # | 171 |
172 # if (is_linux) { | 172 if (is_linux) { |
173 # deps += [ "//third_party/mesa:osmesa" ] | 173 deps += [ "//third_party/mesa:osmesa" ] |
174 # } | 174 } |
175 #} | 175 } |
OLD | NEW |