Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(768)

Unified Diff: webrtc/common_video/BUILD.gn

Issue 2040073002: GN: Add common_audio_unittests and common_video_unittests (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/common_audio/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_video/BUILD.gn
diff --git a/webrtc/common_video/BUILD.gn b/webrtc/common_video/BUILD.gn
index 4714606d2ed8df47b0b72285fad9d61279d7bec3..cb3e3904ed015640941e526e1848ab49d655ca9b 100644
--- a/webrtc/common_video/BUILD.gn
+++ b/webrtc/common_video/BUILD.gn
@@ -7,6 +7,7 @@
# be found in the AUTHORS file in the root of the source tree.
import("../build/webrtc.gni")
+import("//testing/test.gni")
config("common_video_config") {
include_dirs = [
@@ -80,3 +81,51 @@ source_set("common_video") {
libs = [ "CoreVideo.framework" ]
}
}
+
+if (rtc_include_tests) {
+ test("common_video_unittests") {
+ testonly = true
+
+ sources = [
+ "bitrate_adjuster_unittest.cc",
+ "h264/pps_parser_unittest.cc",
+ "h264/sps_parser_unittest.cc",
+ "h264/sps_vui_rewriter_unittest.cc",
+ "i420_buffer_pool_unittest.cc",
+ "i420_video_frame_unittest.cc",
+ "libyuv/libyuv_unittest.cc",
+ "libyuv/scaler_unittest.cc",
+ ]
+
+ configs += [ "..:common_config" ]
+ public_configs = [ "..:common_inherited_config" ]
+
+ # TODO(jschuh): Bug 1348: fix this warning.
+ configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
+
+ if (is_clang) {
+ # Suppress warnings from the Chromium Clang plugin.
+ # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
+ configs -= [ "//build/config/clang:find_bad_constructs" ]
+ }
+
+ deps = [
+ ":common_video",
+ "../system_wrappers:system_wrappers",
+ "../test:test_support_main",
+ "../test:video_test_common",
+ "//testing/gmock",
+ "//testing/gtest",
+ ]
+
+ if (is_android) {
+ deps += [ "//testing/android/native_test:native_test_support" ]
+
+ # This needs to be kept in sync with the .isolate file.
+ # TODO(kjellander); Move this to android_assets targets instead.
+ data = [
+ "//resources/foreman_cif.yuv",
+ ]
+ }
+ }
+}
« no previous file with comments | « webrtc/common_audio/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698