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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 143 |
144 if (!is_android) { | 144 if (!is_android) { |
145 test("compositor_unittests") { | 145 test("compositor_unittests") { |
146 sources = [ | 146 sources = [ |
| 147 "compositor_unittest.cc", |
147 "layer_animation_element_unittest.cc", | 148 "layer_animation_element_unittest.cc", |
148 "layer_animation_sequence_unittest.cc", | 149 "layer_animation_sequence_unittest.cc", |
149 "layer_animator_unittest.cc", | 150 "layer_animator_unittest.cc", |
150 "layer_owner_unittest.cc", | 151 "layer_owner_unittest.cc", |
151 "layer_unittest.cc", | 152 "layer_unittest.cc", |
152 "run_all_unittests.cc", | 153 "run_all_unittests.cc", |
153 "transform_animation_curve_adapter_unittest.cc", | 154 "transform_animation_curve_adapter_unittest.cc", |
154 ] | 155 ] |
155 | 156 |
156 deps = [ | 157 deps = [ |
157 ":compositor", | 158 ":compositor", |
158 ":test_support", | 159 ":test_support", |
159 "//base", | 160 "//base", |
160 "//base/allocator", | 161 "//base/allocator", |
161 "//base/test:test_support", | 162 "//base/test:test_support", |
162 "//cc", | 163 "//cc", |
163 "//cc:test_support", | 164 "//cc:test_support", |
164 "//skia", | 165 "//skia", |
| 166 "//testing/gmock", |
165 "//testing/gtest", | 167 "//testing/gtest", |
166 "//ui/base", | 168 "//ui/base", |
167 "//ui/gfx", | 169 "//ui/gfx", |
168 "//ui/gfx/geometry", | 170 "//ui/gfx/geometry", |
169 "//ui/gl", | 171 "//ui/gl", |
170 "//ui/resources", | 172 "//ui/resources", |
171 ] | 173 ] |
172 | 174 |
173 if (is_linux) { | 175 if (is_linux) { |
174 deps += [ "//third_party/mesa:osmesa" ] | 176 deps += [ "//third_party/mesa:osmesa" ] |
175 } | 177 } |
176 } | 178 } |
177 } | 179 } |
OLD | NEW |