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 import("//testing/test.gni") | 10 import("//testing/test.gni") |
11 | 11 |
12 declare_args() { | |
13 # Set this to true to enable BWE test logging. | |
14 rtc_enable_bwe_test_logging = false | |
15 } | |
16 | |
17 source_set("remote_bitrate_estimator") { | 12 source_set("remote_bitrate_estimator") { |
18 sources = [ | 13 sources = [ |
19 "aimd_rate_control.cc", | 14 "aimd_rate_control.cc", |
20 "aimd_rate_control.h", | 15 "aimd_rate_control.h", |
21 "bwe_defines.cc", | 16 "bwe_defines.cc", |
22 "include/bwe_defines.h", | 17 "include/bwe_defines.h", |
23 "include/remote_bitrate_estimator.h", | 18 "include/remote_bitrate_estimator.h", |
24 "include/send_time_history.h", | 19 "include/send_time_history.h", |
25 "inter_arrival.cc", | 20 "inter_arrival.cc", |
26 "inter_arrival.h", | 21 "inter_arrival.h", |
27 "overuse_detector.cc", | 22 "overuse_detector.cc", |
28 "overuse_detector.h", | 23 "overuse_detector.h", |
29 "overuse_estimator.cc", | 24 "overuse_estimator.cc", |
30 "overuse_estimator.h", | 25 "overuse_estimator.h", |
31 "remote_bitrate_estimator_abs_send_time.cc", | 26 "remote_bitrate_estimator_abs_send_time.cc", |
32 "remote_bitrate_estimator_abs_send_time.h", | 27 "remote_bitrate_estimator_abs_send_time.h", |
33 "remote_bitrate_estimator_single_stream.cc", | 28 "remote_bitrate_estimator_single_stream.cc", |
34 "remote_bitrate_estimator_single_stream.h", | 29 "remote_bitrate_estimator_single_stream.h", |
35 "remote_estimator_proxy.cc", | 30 "remote_estimator_proxy.cc", |
36 "remote_estimator_proxy.h", | 31 "remote_estimator_proxy.h", |
37 "send_time_history.cc", | 32 "send_time_history.cc", |
38 "test/bwe_test_logging.h", | 33 "test/bwe_test_logging.h", |
39 "transport_feedback_adapter.cc", | 34 "transport_feedback_adapter.cc", |
40 "transport_feedback_adapter.h", | 35 "transport_feedback_adapter.h", |
41 ] | 36 ] |
42 | 37 |
43 if (rtc_enable_bwe_test_logging) { | 38 if (!rtc_include_tests) { |
stefan-webrtc
2016/09/01 14:07:35
Still interesting to be able to include test loggi
Gaetano Carlucci
2016/09/01 16:06:26
I think it is included below, right?
| |
44 defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ] | 39 if (rtc_enable_bwe_test_logging) { |
45 sources += [ "test/bwe_test_logging.cc" ] | 40 defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ] |
46 } else { | 41 sources += [ "test/bwe_test_logging.cc" ] |
47 defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ] | 42 } else { |
43 defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ] | |
44 } | |
48 } | 45 } |
49 | 46 |
50 configs += [ "../..:common_config" ] | 47 configs += [ "../..:common_config" ] |
51 public_configs = [ "../..:common_inherited_config" ] | 48 public_configs = [ "../..:common_inherited_config" ] |
52 | 49 |
53 if (is_clang) { | 50 if (is_clang) { |
54 # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). | 51 # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). |
55 configs -= [ "//build/config/clang:find_bad_constructs" ] | 52 configs -= [ "//build/config/clang:find_bad_constructs" ] |
56 } | 53 } |
57 | 54 |
58 deps = [ | 55 deps = [ |
59 "../..:webrtc_common", | 56 "../..:webrtc_common", |
60 "../../base:rtc_base_approved", | 57 "../../base:rtc_base_approved", |
61 "../../system_wrappers", | 58 "../../system_wrappers", |
62 ] | 59 ] |
63 } | 60 } |
64 | 61 |
65 if (rtc_include_tests) { | 62 if (rtc_include_tests) { |
66 source_set("bwe_simulator") { | 63 source_set("bwe_simulator") { |
67 testonly = true | 64 testonly = true |
68 sources = [ | 65 sources = [ |
66 "bwe_simulations.cc", | |
69 "test/bwe.cc", | 67 "test/bwe.cc", |
70 "test/bwe.h", | 68 "test/bwe.h", |
71 "test/bwe_test.cc", | 69 "test/bwe_test.cc", |
72 "test/bwe_test.h", | 70 "test/bwe_test.h", |
73 "test/bwe_test_baselinefile.cc", | 71 "test/bwe_test_baselinefile.cc", |
74 "test/bwe_test_baselinefile.h", | 72 "test/bwe_test_baselinefile.h", |
75 "test/bwe_test_fileutils.cc", | 73 "test/bwe_test_fileutils.cc", |
76 "test/bwe_test_fileutils.h", | 74 "test/bwe_test_fileutils.h", |
77 "test/bwe_test_framework.cc", | 75 "test/bwe_test_framework.cc", |
78 "test/bwe_test_framework.h", | 76 "test/bwe_test_framework.h", |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
117 } | 115 } |
118 | 116 |
119 deps = [ | 117 deps = [ |
120 "../../test:test_support", | 118 "../../test:test_support", |
121 "../pacing", | 119 "../pacing", |
122 "//testing/gmock", | 120 "//testing/gmock", |
123 "//testing/gtest", | 121 "//testing/gtest", |
124 ] | 122 ] |
125 } | 123 } |
126 } | 124 } |
OLD | NEW |