Bug 1880804 [wpt PR 44645] - Implement constructor in RTCEncodedVideoFrame, a=testonly
[gecko.git] / third_party / libwebrtc / stats / BUILD.gn
blobb2a0c2047322c17c85ef1a056f9b3c41cce19e0d
1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
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
5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS.  All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree.
9 import("../webrtc.gni")
11 group("stats") {
12   deps = [ ":rtc_stats" ]
15 rtc_library("rtc_stats") {
16   visibility = [ "*" ]
17   cflags = []
18   sources = [
19     "rtc_stats.cc",
20     "rtc_stats_report.cc",
21     "rtcstats_objects.cc",
22   ]
24   deps = [
25     "../api:rtc_stats_api",
26     "../rtc_base:checks",
27     "../rtc_base:macromagic",
28     "../rtc_base:stringutils",
29   ]
32 rtc_library("rtc_stats_test_utils") {
33   visibility = [ "*" ]
34   cflags = []
35   sources = [
36     "test/rtc_test_stats.cc",
37     "test/rtc_test_stats.h",
38   ]
40   deps = [
41     ":rtc_stats",
42     "../api:rtc_stats_api",
43     "../rtc_base:checks",
44     "../rtc_base/system:rtc_export",
45   ]
48 if (rtc_include_tests && !build_with_chromium) {
49   rtc_test("rtc_stats_unittests") {
50     testonly = true
51     sources = [
52       "rtc_stats_report_unittest.cc",
53       "rtc_stats_unittest.cc",
54     ]
56     deps = [
57       ":rtc_stats",
58       ":rtc_stats_test_utils",
59       "../api:rtc_stats_api",
60       "../rtc_base:checks",
61       "../rtc_base:gunit_helpers",
62       "../rtc_base:rtc_json",
63       "../test:test_main",
64       "../test:test_support",
65     ]
67     if (is_android) {
68       use_default_launcher = false
69       deps += [
70         "//build/android/gtest_apk:native_test_instrumentation_test_runner_java",
71         "//testing/android/native_test:native_test_java",
72         "//testing/android/native_test:native_test_support",
73       ]
74     }
75   }