OLD | NEW |
(Empty) | |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//testing/test.gni") |
| 6 import("//third_party/openh264/openh264_args.gni") |
| 7 |
| 8 if (use_openh264) { |
| 9 test("openh264_unittests") { |
| 10 sources = [ |
| 11 "h264_codec_tester.cc", |
| 12 "h264_codec_tester.h", |
| 13 "h264_decoder_impl.cc", |
| 14 "h264_decoder_impl.h", |
| 15 "h264_encoder_impl.cc", |
| 16 "h264_encoder_impl.h", |
| 17 "i420_utils.cc", |
| 18 "i420_utils.h", |
| 19 "openh264_unittests.cc", |
| 20 ] |
| 21 defines = [ "INCLUDE_OPENH264_UNITTESTS" ] |
| 22 deps = [ |
| 23 "//testing/gtest", |
| 24 "//third_party/openh264:openh264_encoder", |
| 25 "//third_party/openh264:openh264_decoder", |
| 26 "//third_party/webrtc/common_video", |
| 27 ] |
| 28 } |
| 29 } else { |
| 30 # When building without OpenH264 we still produce a test binary but it won't |
| 31 # contain any tests. |
| 32 test("openh264_unittests") { |
| 33 sources = [ |
| 34 "openh264_unittests.cc", |
| 35 ] |
| 36 deps = [ |
| 37 "//testing/gtest", |
| 38 ] |
| 39 } |
| 40 } |
OLD | NEW |