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

Unified Diff: third_party/openh264/testing/BUILD.gn

Issue 1446453004: Adding third_party/openh264 build files for encoding (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed brettw comments, (use_openh264 = true again for trybots) Created 5 years, 1 month 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
Index: third_party/openh264/testing/BUILD.gn
diff --git a/third_party/openh264/testing/BUILD.gn b/third_party/openh264/testing/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..d67797019cd5c75814a1c203c2190cd9f8be8597
--- /dev/null
+++ b/third_party/openh264/testing/BUILD.gn
@@ -0,0 +1,40 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//testing/test.gni")
+import("//third_party/openh264/openh264_args.gni")
+
+if (use_openh264) {
+ test("openh264_unittests") {
+ sources = [
+ "h264_codec_tester.cc",
+ "h264_codec_tester.h",
+ "h264_decoder_impl.cc",
+ "h264_decoder_impl.h",
+ "h264_encoder_impl.cc",
+ "h264_encoder_impl.h",
+ "i420_utils.cc",
+ "i420_utils.h",
+ "openh264_unittests.cc",
+ ]
+ defines = [ "INCLUDE_OPENH264_UNITTESTS" ]
+ deps = [
+ "//testing/gtest",
+ "//third_party/openh264:openh264_encoder",
+ "//third_party/openh264:openh264_decoder",
+ "//third_party/webrtc/common_video",
+ ]
+ }
+} else {
+ # When building without OpenH264 we still produce a test binary but it won't
+ # contain any tests.
+ test("openh264_unittests") {
+ sources = [
+ "openh264_unittests.cc",
+ ]
+ deps = [
+ "//testing/gtest",
+ ]
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698