Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: ui/gl/BUILD.gn

Issue 1162203006: Unit tests have been created for the GPUTiming. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed irrelevent test Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 deps = [ 290 deps = [
288 ":gl", 291 ":gl",
292 ":gl_unittest_utils",
289 "//base", 293 "//base",
290 "//base/test:test_support", 294 "//base/test:test_support",
295 "//testing/gmock",
291 "//testing/gtest", 296 "//testing/gtest",
292 ] 297 ]
293 } 298 }
294 299
295 if (is_android) { 300 if (is_android) {
296 generate_jar_jni("surface_jni_headers") { 301 generate_jar_jni("surface_jni_headers") {
297 jni_package = "ui/gl" 302 jni_package = "ui/gl"
298 classes = [ "android/view/Surface.class" ] 303 classes = [ "android/view/Surface.class" ]
299 } 304 }
300 305
301 generate_jni("gl_jni_headers") { 306 generate_jni("gl_jni_headers") {
302 deps = [ 307 deps = [
303 ":surface_jni_headers", 308 ":surface_jni_headers",
304 ] 309 ]
305 sources = [ 310 sources = [
306 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", 311 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java",
307 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java ", 312 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java ",
308 ] 313 ]
309 jni_package = "ui/gl" 314 jni_package = "ui/gl"
310 } 315 }
311 } 316 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698