OLD | NEW |
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 import("../build/webrtc.gni") | 9 import("../build/webrtc.gni") |
10 import("//testing/test.gni") | 10 import("//testing/test.gni") |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 if (is_ios || is_mac) { | 75 if (is_ios || is_mac) { |
76 sources += [ | 76 sources += [ |
77 "corevideo_frame_buffer.cc", | 77 "corevideo_frame_buffer.cc", |
78 "include/corevideo_frame_buffer.h", | 78 "include/corevideo_frame_buffer.h", |
79 ] | 79 ] |
80 libs = [ "CoreVideo.framework" ] | 80 libs = [ "CoreVideo.framework" ] |
81 } | 81 } |
82 } | 82 } |
83 | 83 |
84 if (rtc_include_tests) { | 84 if (rtc_include_tests) { |
| 85 if (is_android || is_ios) { |
| 86 common_video_resources = [ "//resources/foreman_cif.yuv" ] |
| 87 } |
| 88 |
| 89 if (is_ios) { |
| 90 bundle_data("common_video_unittests_bundle_data") { |
| 91 testonly = true |
| 92 sources = common_video_resources |
| 93 outputs = [ |
| 94 "{{bundle_resources_dir}}/{{source_file_part}}", |
| 95 ] |
| 96 } |
| 97 } |
| 98 |
85 test("common_video_unittests") { | 99 test("common_video_unittests") { |
86 testonly = true | 100 testonly = true |
87 | 101 |
88 sources = [ | 102 sources = [ |
89 "bitrate_adjuster_unittest.cc", | 103 "bitrate_adjuster_unittest.cc", |
90 "h264/pps_parser_unittest.cc", | 104 "h264/pps_parser_unittest.cc", |
91 "h264/sps_parser_unittest.cc", | 105 "h264/sps_parser_unittest.cc", |
92 "h264/sps_vui_rewriter_unittest.cc", | 106 "h264/sps_vui_rewriter_unittest.cc", |
93 "i420_buffer_pool_unittest.cc", | 107 "i420_buffer_pool_unittest.cc", |
94 "i420_video_frame_unittest.cc", | 108 "i420_video_frame_unittest.cc", |
(...skipping 16 matching lines...) Expand all Loading... |
111 ":common_video", | 125 ":common_video", |
112 "../system_wrappers:system_wrappers", | 126 "../system_wrappers:system_wrappers", |
113 "../test:test_support_main", | 127 "../test:test_support_main", |
114 "../test:video_test_common", | 128 "../test:video_test_common", |
115 "//testing/gmock", | 129 "//testing/gmock", |
116 "//testing/gtest", | 130 "//testing/gtest", |
117 ] | 131 ] |
118 | 132 |
119 if (is_android) { | 133 if (is_android) { |
120 deps += [ "//testing/android/native_test:native_test_support" ] | 134 deps += [ "//testing/android/native_test:native_test_support" ] |
| 135 data = common_video_resources |
121 shard_timeout = 900 | 136 shard_timeout = 900 |
122 } | 137 } |
123 | 138 |
124 if (is_android || is_ios) { | 139 if (is_ios) { |
125 data = [ | 140 deps += [ ":common_video_unittests_bundle_data" ] |
126 "//resources/foreman_cif.yuv", | |
127 ] | |
128 } | 141 } |
129 } | 142 } |
130 } | 143 } |
OLD | NEW |