| 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 # Target naming conventions: | 7 # Target naming conventions: |
| 8 # - unittests: Unit tests for a particular class/file. | 8 # - unittests: Unit tests for a particular class/file. |
| 9 | 9 |
| 10 source_set("common") { | 10 source_set("common") { |
| 11 sources = [ | 11 sources = [ |
| 12 "media_type_converters.cc", | 12 "media_type_converters.cc", |
| 13 "media_type_converters.h", | 13 "media_type_converters.h", |
| 14 "mojo_shared_buffer_video_frame.cc", |
| 15 "mojo_shared_buffer_video_frame.h", |
| 14 ] | 16 ] |
| 15 | 17 |
| 16 deps = [ | 18 deps = [ |
| 17 "//base", | 19 "//base", |
| 18 "//media", | 20 "//media", |
| 19 "//media/mojo/interfaces", | 21 "//media/mojo/interfaces", |
| 20 "//mojo/common", | 22 "//mojo/common", |
| 21 "//mojo/converters/geometry", | 23 "//mojo/converters/geometry", |
| 22 "//mojo/environment:chromium", | 24 "//mojo/environment:chromium", |
| 23 "//mojo/public/c/system:for_component", | 25 "//mojo/public/c/system:for_component", |
| 26 "//ui/gfx/geometry", |
| 24 "//ui/mojo/geometry:interfaces", | 27 "//ui/mojo/geometry:interfaces", |
| 25 ] | 28 ] |
| 26 } | 29 } |
| 27 | 30 |
| 28 test("media_mojo_unittests") { | 31 test("media_mojo_unittests") { |
| 29 sources = [ | 32 sources = [ |
| 30 "media_type_converters_unittest.cc", | 33 "media_type_converters_unittest.cc", |
| 34 "mojo_shared_buffer_video_frame_unittest.cc", |
| 31 ] | 35 ] |
| 32 | 36 |
| 33 deps = [ | 37 deps = [ |
| 34 ":common", | 38 ":common", |
| 35 "//base", | 39 "//base", |
| 36 "//base/test:test_support", | 40 "//base/test:test_support", |
| 37 "//media", | 41 "//media", |
| 38 "//media/base:test_support", | 42 "//media/base:test_support", |
| 39 "//media/mojo/interfaces", | 43 "//media/mojo/interfaces", |
| 40 "//mojo/edk/system", | 44 "//mojo/edk/system", |
| 41 "//mojo/edk/test:run_all_unittests", | 45 "//mojo/edk/test:run_all_unittests", |
| 42 "//mojo/environment:chromium", | 46 "//mojo/environment:chromium", |
| 43 "//testing/gmock", | 47 "//testing/gmock", |
| 44 "//testing/gtest", | 48 "//testing/gtest", |
| 45 ] | 49 ] |
| 46 } | 50 } |
| 47 | 51 |
| 48 group("tests") { | 52 group("tests") { |
| 49 testonly = true | 53 testonly = true |
| 50 deps = [ | 54 deps = [ |
| 51 ":media_mojo_unittests", | 55 ":media_mojo_unittests", |
| 52 ] | 56 ] |
| 53 } | 57 } |
| OLD | NEW |