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 | 10 |
11 declare_args() { | |
12 # Set this to true to enable BWE test logging. | |
13 rtc_enable_bwe_test_logging = false | |
14 } | |
15 | |
16 rtc_source_set("remote_bitrate_estimator") { | 11 rtc_source_set("remote_bitrate_estimator") { |
17 sources = [ | 12 sources = [ |
18 "aimd_rate_control.cc", | 13 "aimd_rate_control.cc", |
19 "aimd_rate_control.h", | 14 "aimd_rate_control.h", |
20 "bwe_defines.cc", | 15 "bwe_defines.cc", |
21 "include/bwe_defines.h", | 16 "include/bwe_defines.h", |
22 "include/remote_bitrate_estimator.h", | 17 "include/remote_bitrate_estimator.h", |
23 "include/send_time_history.h", | 18 "include/send_time_history.h", |
24 "inter_arrival.cc", | 19 "inter_arrival.cc", |
25 "inter_arrival.h", | 20 "inter_arrival.h", |
26 "overuse_detector.cc", | 21 "overuse_detector.cc", |
27 "overuse_detector.h", | 22 "overuse_detector.h", |
28 "overuse_estimator.cc", | 23 "overuse_estimator.cc", |
29 "overuse_estimator.h", | 24 "overuse_estimator.h", |
30 "remote_bitrate_estimator_abs_send_time.cc", | 25 "remote_bitrate_estimator_abs_send_time.cc", |
31 "remote_bitrate_estimator_abs_send_time.h", | 26 "remote_bitrate_estimator_abs_send_time.h", |
32 "remote_bitrate_estimator_single_stream.cc", | 27 "remote_bitrate_estimator_single_stream.cc", |
33 "remote_bitrate_estimator_single_stream.h", | 28 "remote_bitrate_estimator_single_stream.h", |
34 "remote_estimator_proxy.cc", | 29 "remote_estimator_proxy.cc", |
35 "remote_estimator_proxy.h", | 30 "remote_estimator_proxy.h", |
36 "send_time_history.cc", | 31 "send_time_history.cc", |
37 "test/bwe_test_logging.h", | 32 "test/bwe_test_logging.h", |
38 "transport_feedback_adapter.cc", | 33 "transport_feedback_adapter.cc", |
39 "transport_feedback_adapter.h", | 34 "transport_feedback_adapter.h", |
40 ] | 35 ] |
41 | 36 |
42 if (rtc_enable_bwe_test_logging) { | 37 if (!rtc_include_tests) { |
43 defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ] | 38 if (rtc_enable_bwe_test_logging) { |
44 sources += [ "test/bwe_test_logging.cc" ] | 39 defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ] |
45 } else { | 40 sources += [ "test/bwe_test_logging.cc" ] |
46 defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ] | 41 } else { |
| 42 defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ] |
| 43 } |
47 } | 44 } |
48 | 45 |
49 if (is_clang) { | 46 if (is_clang) { |
50 # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). | 47 # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). |
51 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 48 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
52 } | 49 } |
53 | 50 |
54 deps = [ | 51 deps = [ |
55 "../..:webrtc_common", | 52 "../..:webrtc_common", |
56 "../../base:rtc_base_approved", | 53 "../../base:rtc_base_approved", |
57 "../../system_wrappers", | 54 "../../system_wrappers", |
58 ] | 55 ] |
59 } | 56 } |
60 | 57 |
61 if (rtc_include_tests) { | 58 if (rtc_include_tests) { |
62 rtc_source_set("bwe_simulator") { | 59 rtc_source_set("bwe_simulator") { |
63 testonly = true | 60 testonly = true |
64 sources = [ | 61 sources = [ |
| 62 "bwe_simulations.cc", |
65 "test/bwe.cc", | 63 "test/bwe.cc", |
66 "test/bwe.h", | 64 "test/bwe.h", |
67 "test/bwe_test.cc", | 65 "test/bwe_test.cc", |
68 "test/bwe_test.h", | 66 "test/bwe_test.h", |
69 "test/bwe_test_baselinefile.cc", | 67 "test/bwe_test_baselinefile.cc", |
70 "test/bwe_test_baselinefile.h", | 68 "test/bwe_test_baselinefile.h", |
71 "test/bwe_test_fileutils.cc", | 69 "test/bwe_test_fileutils.cc", |
72 "test/bwe_test_fileutils.h", | 70 "test/bwe_test_fileutils.h", |
73 "test/bwe_test_framework.cc", | 71 "test/bwe_test_framework.cc", |
74 "test/bwe_test_framework.h", | 72 "test/bwe_test_framework.h", |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 } | 108 } |
111 | 109 |
112 deps = [ | 110 deps = [ |
113 "../../test:test_support", | 111 "../../test:test_support", |
114 "../pacing", | 112 "../pacing", |
115 "//testing/gmock", | 113 "//testing/gmock", |
116 "//testing/gtest", | 114 "//testing/gtest", |
117 ] | 115 ] |
118 } | 116 } |
119 } | 117 } |
OLD | NEW |