| 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("//services/service_manager/public/cpp/service.gni") | 5 import("//services/service_manager/public/cpp/service.gni") |
| 6 import("//services/service_manager/public/service_manifest.gni") | 6 import("//services/service_manager/public/service_manifest.gni") |
| 7 import("//services/service_manager/public/tools/test/service_test.gni") | 7 import("//services/service_manager/public/tools/test/service_test.gni") |
| 8 import("//testing/test.gni") | 8 import("//testing/test.gni") |
| 9 | 9 |
| 10 service("video_capture") { | 10 service("video_capture") { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 "//media", | 40 "//media", |
| 41 "//media/capture:capture", | 41 "//media/capture:capture", |
| 42 "//media/capture/mojo:image_capture", | 42 "//media/capture/mojo:image_capture", |
| 43 "//media/mojo/common:common", | 43 "//media/mojo/common:common", |
| 44 "//mojo/common:common_base", | 44 "//mojo/common:common_base", |
| 45 "//services/service_manager/public/cpp", | 45 "//services/service_manager/public/cpp", |
| 46 "//services/video_capture/public/interfaces", | 46 "//services/video_capture/public/interfaces", |
| 47 ] | 47 ] |
| 48 } | 48 } |
| 49 | 49 |
| 50 service_test("video_capture_unittests") { | 50 source_set("tests") { |
| 51 testonly = true |
| 52 |
| 51 sources = [ | 53 sources = [ |
| 52 "test/fake_device_descriptor_test.cc", | 54 "test/fake_device_descriptor_test.cc", |
| 53 "test/fake_device_descriptor_test.h", | 55 "test/fake_device_descriptor_test.h", |
| 54 "test/fake_device_descriptor_unittest.cc", | 56 "test/fake_device_descriptor_unittest.cc", |
| 55 "test/fake_device_test.cc", | 57 "test/fake_device_test.cc", |
| 56 "test/fake_device_test.h", | 58 "test/fake_device_test.h", |
| 57 "test/fake_device_unittest.cc", | 59 "test/fake_device_unittest.cc", |
| 58 "test/mock_device_factory.cc", | 60 "test/mock_device_factory.cc", |
| 59 "test/mock_device_factory.h", | 61 "test/mock_device_factory.h", |
| 60 "test/mock_device_test.cc", | 62 "test/mock_device_test.cc", |
| 61 "test/mock_device_test.h", | 63 "test/mock_device_test.h", |
| 62 "test/mock_device_unittest.cc", | 64 "test/mock_device_unittest.cc", |
| 63 "test/mock_receiver.cc", | 65 "test/mock_receiver.cc", |
| 64 "test/mock_receiver.h", | 66 "test/mock_receiver.h", |
| 65 "test/service_test.cc", | 67 "test/service_test.cc", |
| 66 "test/service_test.h", | 68 "test/service_test.h", |
| 67 "test/service_unittest.cc", | 69 "test/service_unittest.cc", |
| 68 ] | 70 ] |
| 69 | 71 |
| 70 catalog = ":video_capture_unittests_catalog" | |
| 71 | |
| 72 deps = [ | 72 deps = [ |
| 73 ":lib", | 73 ":lib", |
| 74 ":video_capture", | 74 ":video_capture", |
| 75 "//base/test:test_support", | 75 "//base/test:test_support", |
| 76 "//media/capture/mojo:capture_types", | 76 "//media/capture/mojo:capture_types", |
| 77 "//services/service_manager/public/cpp", | 77 "//services/service_manager/public/cpp", |
| 78 "//services/service_manager/public/cpp:service_test_support", | 78 "//services/service_manager/public/cpp:service_test_support", |
| 79 "//testing/gmock", | 79 "//testing/gmock", |
| 80 "//testing/gtest", | 80 "//testing/gtest", |
| 81 "//ui/gfx:test_support", | 81 "//ui/gfx:test_support", |
| 82 ] | 82 ] |
| 83 |
| 84 data_deps = [ |
| 85 ":video_capture", |
| 86 ] |
| 83 } | 87 } |
| 84 | 88 |
| 85 service_manifest("unittest_manifest") { | 89 service_manifest("unittest_manifest") { |
| 86 name = "video_capture_unittests" | 90 name = "video_capture_unittests" |
| 87 source = "test/service_unittest_manifest.json" | 91 source = "test/service_unittest_manifest.json" |
| 88 } | 92 } |
| 89 | 93 |
| 90 catalog("video_capture_unittests_catalog") { | 94 catalog("tests_catalog") { |
| 91 embedded_services = [ ":unittest_manifest" ] | 95 embedded_services = [ ":unittest_manifest" ] |
| 92 standalone_services = [ ":manifest" ] | 96 standalone_services = [ ":manifest" ] |
| 93 } | 97 } |
| OLD | NEW |