| 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("../webrtc.gni") | 9 import("../webrtc.gni") |
| 10 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 } | 155 } |
| 156 | 156 |
| 157 if (!build_with_chromium) { | 157 if (!build_with_chromium) { |
| 158 # This target depends on //third_party/gflags and since chromium does not | 158 # This target depends on //third_party/gflags and since chromium does not |
| 159 # have gflags it causes an error when Gn parses this BUILD.gn file. | 159 # have gflags it causes an error when Gn parses this BUILD.gn file. |
| 160 # It seems that Gn eagerly tries to understand if all the targets are | 160 # It seems that Gn eagerly tries to understand if all the targets are |
| 161 # buildable (even deps). Obviously gflags is not buildable in chromium | 161 # buildable (even deps). Obviously gflags is not buildable in chromium |
| 162 # so if a target depends on this BUILD.gn file we hit this error. | 162 # so if a target depends on this BUILD.gn file we hit this error. |
| 163 rtc_source_set("test_main") { | 163 rtc_source_set("test_main") { |
| 164 testonly = true | 164 testonly = true |
| 165 sources = [ | 165 sources = [] |
| 166 "test_main.cc", | 166 if (!is_ios) { |
| 167 ] | 167 sources += [ "test_main.cc" ] |
| 168 } |
| 168 | 169 |
| 169 public_deps = [ | 170 public_deps = [ |
| 170 ":test_support", | 171 ":test_support", |
| 171 ] | 172 ] |
| 172 deps = [ | 173 deps = [ |
| 173 ":field_trial", | 174 ":field_trial", |
| 174 "../base:rtc_base_approved", | 175 "../base:rtc_base_approved", |
| 175 "../system_wrappers:metrics_default", | 176 "../system_wrappers:metrics_default", |
| 176 "//testing/gmock", | 177 "//testing/gmock", |
| 177 "//testing/gtest", | 178 "//testing/gtest", |
| 178 "//third_party/gflags", | 179 "//third_party/gflags", |
| 179 ] | 180 ] |
| 181 |
| 182 # TODO(oprypin): Bug 7758: integrate the iOS unittest support into WebRTC's |
| 183 # test_main instead of replacing it with Chromium's main function. |
| 184 if (is_ios) { |
| 185 deps += [ "//base/test:run_all_unittests" ] |
| 186 } |
| 180 } | 187 } |
| 181 | 188 |
| 182 rtc_source_set("video_test_support") { | 189 rtc_source_set("video_test_support") { |
| 183 testonly = true | 190 testonly = true |
| 184 | 191 |
| 185 sources = [ | 192 sources = [ |
| 186 "testsupport/frame_reader.h", | 193 "testsupport/frame_reader.h", |
| 187 "testsupport/frame_writer.h", | 194 "testsupport/frame_writer.h", |
| 188 "testsupport/metrics/video_metrics.cc", | 195 "testsupport/metrics/video_metrics.cc", |
| 189 "testsupport/metrics/video_metrics.h", | 196 "testsupport/metrics/video_metrics.h", |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 java_files = [ | 602 java_files = [ |
| 596 "android/org/webrtc/native_test/RTCNativeUnitTest.java", | 603 "android/org/webrtc/native_test/RTCNativeUnitTest.java", |
| 597 "android/org/webrtc/native_test/RTCNativeUnitTestActivity.java", | 604 "android/org/webrtc/native_test/RTCNativeUnitTestActivity.java", |
| 598 ] | 605 ] |
| 599 deps = [ | 606 deps = [ |
| 600 "//testing/android/native_test:native_test_java", | 607 "//testing/android/native_test:native_test_java", |
| 601 "//webrtc/base:base_java", | 608 "//webrtc/base:base_java", |
| 602 ] | 609 ] |
| 603 } | 610 } |
| 604 } | 611 } |
| OLD | NEW |