| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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("//testing/test.gni") | 5 import("//testing/test.gni") |
| 6 | 6 |
| 7 component("display_compositor") { | 7 component("display_compositor") { |
| 8 sources = [ | 8 sources = [ |
| 9 "buffer_queue.cc", | 9 "buffer_queue.cc", |
| 10 "buffer_queue.h", | 10 "buffer_queue.h", |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 "//base", | 25 "//base", |
| 26 "//cc", | 26 "//cc", |
| 27 "//gpu/command_buffer/client", | 27 "//gpu/command_buffer/client", |
| 28 "//gpu/command_buffer/client:gles2_interface", | 28 "//gpu/command_buffer/client:gles2_interface", |
| 29 "//gpu/command_buffer/common", | 29 "//gpu/command_buffer/common", |
| 30 "//skia", | 30 "//skia", |
| 31 "//ui/gfx", | 31 "//ui/gfx", |
| 32 ] | 32 ] |
| 33 } | 33 } |
| 34 | 34 |
| 35 test("display_compositor_unittests") { | 35 source_set("unit_tests") { |
| 36 testonly = true |
| 36 sources = [ | 37 sources = [ |
| 37 "buffer_queue_unittest.cc", | 38 "buffer_queue_unittest.cc", |
| 39 ] |
| 40 |
| 41 if (!use_aura && !is_mac) { |
| 42 sources -= [ "buffer_queue_unittest.cc" ] |
| 43 } |
| 44 |
| 45 configs += [ |
| 46 "//build/config/compiler:no_size_t_to_int_warning", |
| 47 "//third_party/khronos:khronos_headers", |
| 48 ] |
| 49 |
| 50 deps = [ |
| 51 ":display_compositor", |
| 52 "//base", |
| 53 "//base/test:test_support", |
| 54 "//cc:test_support", |
| 55 "//gpu/command_buffer/client", |
| 56 "//gpu/command_buffer/client:gl_in_process_context", |
| 57 "//gpu/command_buffer/client:gles2_implementation", |
| 58 "//media", |
| 59 "//skia", |
| 60 "//testing/gmock", |
| 61 "//testing/gtest", |
| 62 "//ui/gl:test_support", |
| 63 ] |
| 64 |
| 65 data_deps = [ |
| 66 "//third_party/mesa:osmesa", |
| 67 ] |
| 68 } |
| 69 |
| 70 test("display_compositor_gl_tests") { |
| 71 sources = [ |
| 38 "display_compositor_test_suite.cc", | 72 "display_compositor_test_suite.cc", |
| 39 "display_compositor_test_suite.h", | 73 "display_compositor_test_suite.h", |
| 40 "gl_helper_unittest.cc", | 74 "gl_helper_unittest.cc", |
| 41 "run_all_unittests.cc", | 75 "run_all_unittests.cc", |
| 42 "yuv_readback_unittest.cc", | 76 "yuv_readback_unittest.cc", |
| 43 ] | 77 ] |
| 44 | 78 |
| 45 configs += [ | 79 configs += [ |
| 46 "//build/config/compiler:no_size_t_to_int_warning", | 80 "//build/config/compiler:no_size_t_to_int_warning", |
| 47 "//third_party/khronos:khronos_headers", | 81 "//third_party/khronos:khronos_headers", |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 "//skia", | 126 "//skia", |
| 93 "//testing/gmock", | 127 "//testing/gmock", |
| 94 "//testing/gtest", | 128 "//testing/gtest", |
| 95 "//ui/gl:test_support", | 129 "//ui/gl:test_support", |
| 96 ] | 130 ] |
| 97 | 131 |
| 98 data_deps = [ | 132 data_deps = [ |
| 99 "//third_party/mesa:osmesa", | 133 "//third_party/mesa:osmesa", |
| 100 ] | 134 ] |
| 101 } | 135 } |
| OLD | NEW |