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 if (is_android) { | 8 if (is_android) { |
9 import("//build/config/android/config.gni") | 9 import("//build/config/android/config.gni") |
10 import("//build/config/android/rules.gni") | 10 import("//build/config/android/rules.gni") |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 } | 261 } |
262 | 262 |
263 source_set("gl_unittest_utils") { | 263 source_set("gl_unittest_utils") { |
264 testonly = true | 264 testonly = true |
265 sources = [ | 265 sources = [ |
266 "gl_bindings_autogen_mock.cc", | 266 "gl_bindings_autogen_mock.cc", |
267 "gl_bindings_autogen_mock.h", | 267 "gl_bindings_autogen_mock.h", |
268 "gl_mock.cc", | 268 "gl_mock.cc", |
269 "gl_mock.h", | 269 "gl_mock.h", |
270 "gl_mock_autogen_gl.h", | 270 "gl_mock_autogen_gl.h", |
| 271 "gpu_timing_fake.cc", |
| 272 "gpu_timing_fake.h", |
271 ] | 273 ] |
272 | 274 |
273 configs += [ "//third_party/khronos:khronos_headers" ] | 275 configs += [ "//third_party/khronos:khronos_headers" ] |
274 | 276 |
275 deps = [ | 277 deps = [ |
276 ":gl", | 278 ":gl", |
277 "//testing/gmock", | 279 "//testing/gmock", |
278 ] | 280 ] |
279 } | 281 } |
280 | 282 |
281 test("gl_unittests") { | 283 test("gl_unittests") { |
282 sources = [ | 284 sources = [ |
283 "gl_api_unittest.cc", | 285 "gl_api_unittest.cc", |
| 286 "gpu_timing_unittest.cc", |
284 "test/run_all_unittests.cc", | 287 "test/run_all_unittests.cc", |
285 ] | 288 ] |
286 | 289 |
287 if (is_win || is_android || is_linux) { | 290 if (is_win || is_android || is_linux) { |
288 sources += [ | 291 sources += [ |
289 "egl_api_unittest.cc", | 292 "egl_api_unittest.cc", |
290 "test/egl_initialization_displays_unittest.cc", | 293 "test/egl_initialization_displays_unittest.cc", |
291 ] | 294 ] |
292 } | 295 } |
293 | 296 |
294 include_dirs = [ "//third_party/khronos" ] | 297 include_dirs = [ "//third_party/khronos" ] |
295 | 298 |
296 deps = [ | 299 deps = [ |
297 ":gl", | 300 ":gl", |
| 301 ":gl_unittest_utils", |
298 "//base", | 302 "//base", |
299 "//base/test:test_support", | 303 "//base/test:test_support", |
| 304 "//testing/gmock", |
300 "//testing/gtest", | 305 "//testing/gtest", |
301 ] | 306 ] |
302 } | 307 } |
303 | 308 |
304 if (is_android) { | 309 if (is_android) { |
305 generate_jar_jni("surface_jni_headers") { | 310 generate_jar_jni("surface_jni_headers") { |
306 jni_package = "ui/gl" | 311 jni_package = "ui/gl" |
307 classes = [ "android/view/Surface.class" ] | 312 classes = [ "android/view/Surface.class" ] |
308 } | 313 } |
309 | 314 |
310 generate_jni("gl_jni_headers") { | 315 generate_jni("gl_jni_headers") { |
311 deps = [ | 316 deps = [ |
312 ":surface_jni_headers", | 317 ":surface_jni_headers", |
313 ] | 318 ] |
314 sources = [ | 319 sources = [ |
315 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", | 320 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", |
316 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", | 321 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", |
317 ] | 322 ] |
318 jni_package = "ui/gl" | 323 jni_package = "ui/gl" |
319 } | 324 } |
320 } | 325 } |
OLD | NEW |