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