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

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

Issue 1121353002: Added unittest for ui/gl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed (c) Created 5 years, 7 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
« no previous file with comments | « build/gn_migration.gypi ('k') | ui/gl/gl_tests.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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")
7
6 if (is_android) { 8 if (is_android) {
7 import("//build/config/android/config.gni") 9 import("//build/config/android/config.gni")
8 import("//build/config/android/rules.gni") 10 import("//build/config/android/rules.gni")
9 } 11 }
10 12
11 config("gl_config") { 13 config("gl_config") {
12 if (use_x11) { 14 if (use_x11) {
13 defines = [ "GL_GLEXT_PROTOTYPES" ] 15 defines = [ "GL_GLEXT_PROTOTYPES" ]
14 } 16 }
15 } 17 }
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 ] 271 ]
270 272
271 configs += [ "//third_party/khronos:khronos_headers" ] 273 configs += [ "//third_party/khronos:khronos_headers" ]
272 274
273 deps = [ 275 deps = [
274 ":gl", 276 ":gl",
275 "//testing/gmock", 277 "//testing/gmock",
276 ] 278 ]
277 } 279 }
278 280
281 test("gl_unittests") {
282 sources = [
283 "test/run_all_unittests.cc",
284 ]
285
286 deps = [
287 ":gl",
288 "//base",
289 "//base/test:test_support",
290 "//testing/gtest",
291 ]
292 }
293
279 if (is_android) { 294 if (is_android) {
280 generate_jar_jni("surface_jni_headers") { 295 generate_jar_jni("surface_jni_headers") {
281 jni_package = "ui/gl" 296 jni_package = "ui/gl"
282 classes = [ "android/view/Surface.class" ] 297 classes = [ "android/view/Surface.class" ]
283 } 298 }
284 299
285 generate_jni("gl_jni_headers") { 300 generate_jni("gl_jni_headers") {
286 deps = [ 301 deps = [
287 ":surface_jni_headers", 302 ":surface_jni_headers",
288 ] 303 ]
289 sources = [ 304 sources = [
290 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", 305 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java",
291 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java ", 306 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java ",
292 ] 307 ]
293 jni_package = "ui/gl" 308 jni_package = "ui/gl"
294 } 309 }
295 } 310 }
OLDNEW
« no previous file with comments | « build/gn_migration.gypi ('k') | ui/gl/gl_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698