kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 1 | # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
| 2 | # |
| 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. |
| 8 | |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 9 | import("../../build/webrtc.gni") |
| 10 | import("//testing/test.gni") |
| 11 | |
brucedawson | 07df20b | 2016-05-22 17:15:02 -0700 | [diff] [blame] | 12 | declare_args() { |
| 13 | # Set this to true to enable BWE test logging. |
kjellander | 5c1d043 | 2016-06-09 02:40:58 -0700 | [diff] [blame] | 14 | rtc_enable_bwe_test_logging = false |
brucedawson | 07df20b | 2016-05-22 17:15:02 -0700 | [diff] [blame] | 15 | } |
| 16 | |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 17 | source_set("remote_bitrate_estimator") { |
| 18 | sources = [ |
pbos@webrtc.org | 9f79fe6 | 2014-12-04 15:34:06 +0000 | [diff] [blame] | 19 | "aimd_rate_control.cc", |
| 20 | "aimd_rate_control.h", |
stefan | 64636dd | 2016-08-03 00:29:03 -0700 | [diff] [blame] | 21 | "bwe_defines.cc", |
kjellander | 5c1d043 | 2016-06-09 02:40:58 -0700 | [diff] [blame] | 22 | "include/bwe_defines.h", |
| 23 | "include/remote_bitrate_estimator.h", |
sprang | 318673c | 2015-09-04 04:43:21 -0700 | [diff] [blame] | 24 | "include/send_time_history.h", |
pbos@webrtc.org | 9f79fe6 | 2014-12-04 15:34:06 +0000 | [diff] [blame] | 25 | "inter_arrival.cc", |
| 26 | "inter_arrival.h", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 27 | "overuse_detector.cc", |
| 28 | "overuse_detector.h", |
pbos@webrtc.org | 9f79fe6 | 2014-12-04 15:34:06 +0000 | [diff] [blame] | 29 | "overuse_estimator.cc", |
| 30 | "overuse_estimator.h", |
| 31 | "remote_bitrate_estimator_abs_send_time.cc", |
kjellander | 5c1d043 | 2016-06-09 02:40:58 -0700 | [diff] [blame] | 32 | "remote_bitrate_estimator_abs_send_time.h", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 33 | "remote_bitrate_estimator_single_stream.cc", |
kjellander | 5c1d043 | 2016-06-09 02:40:58 -0700 | [diff] [blame] | 34 | "remote_bitrate_estimator_single_stream.h", |
Erik Språng | 6b8d355 | 2015-09-24 15:06:57 +0200 | [diff] [blame] | 35 | "remote_estimator_proxy.cc", |
| 36 | "remote_estimator_proxy.h", |
sprang | 318673c | 2015-09-04 04:43:21 -0700 | [diff] [blame] | 37 | "send_time_history.cc", |
kjellander | 5c1d043 | 2016-06-09 02:40:58 -0700 | [diff] [blame] | 38 | "test/bwe_test_logging.h", |
Erik Språng | 6b8d355 | 2015-09-24 15:06:57 +0200 | [diff] [blame] | 39 | "transport_feedback_adapter.cc", |
| 40 | "transport_feedback_adapter.h", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 41 | ] |
kjellander@webrtc.org | 9bef551 | 2014-07-13 09:02:54 +0000 | [diff] [blame] | 42 | |
kjellander | 5c1d043 | 2016-06-09 02:40:58 -0700 | [diff] [blame] | 43 | if (rtc_enable_bwe_test_logging) { |
| 44 | defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ] |
brucedawson | 07df20b | 2016-05-22 17:15:02 -0700 | [diff] [blame] | 45 | sources += [ "test/bwe_test_logging.cc" ] |
kjellander | 5c1d043 | 2016-06-09 02:40:58 -0700 | [diff] [blame] | 46 | } else { |
| 47 | defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ] |
brucedawson | 07df20b | 2016-05-22 17:15:02 -0700 | [diff] [blame] | 48 | } |
| 49 | |
Henrik Kjellander | d4070c6 | 2016-06-09 11:55:29 +0200 | [diff] [blame] | 50 | configs += [ "../..:common_config" ] |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 51 | public_configs = [ "../..:common_inherited_config" ] |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 52 | |
| 53 | if (is_clang) { |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 54 | # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 55 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 56 | } |
kjellander | 5c1d043 | 2016-06-09 02:40:58 -0700 | [diff] [blame] | 57 | |
| 58 | deps = [ |
| 59 | "../..:webrtc_common", |
Henrik Kjellander | d4070c6 | 2016-06-09 11:55:29 +0200 | [diff] [blame] | 60 | "../../base:rtc_base_approved", |
kjellander | 5c1d043 | 2016-06-09 02:40:58 -0700 | [diff] [blame] | 61 | "../../system_wrappers", |
| 62 | ] |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 63 | } |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 64 | |
| 65 | if (rtc_include_tests) { |
| 66 | source_set("bwe_simulator") { |
| 67 | testonly = true |
| 68 | sources = [ |
| 69 | "test/bwe.cc", |
| 70 | "test/bwe.h", |
| 71 | "test/bwe_test.cc", |
| 72 | "test/bwe_test.h", |
| 73 | "test/bwe_test_baselinefile.cc", |
| 74 | "test/bwe_test_baselinefile.h", |
| 75 | "test/bwe_test_fileutils.cc", |
| 76 | "test/bwe_test_fileutils.h", |
| 77 | "test/bwe_test_framework.cc", |
| 78 | "test/bwe_test_framework.h", |
| 79 | "test/bwe_test_logging.h", |
| 80 | "test/estimators/nada.cc", |
| 81 | "test/estimators/nada.h", |
| 82 | "test/estimators/remb.cc", |
| 83 | "test/estimators/remb.h", |
| 84 | "test/estimators/send_side.cc", |
| 85 | "test/estimators/send_side.h", |
| 86 | "test/estimators/tcp.cc", |
| 87 | "test/estimators/tcp.h", |
| 88 | "test/metric_recorder.cc", |
| 89 | "test/metric_recorder.h", |
| 90 | "test/packet.h", |
| 91 | "test/packet_receiver.cc", |
| 92 | "test/packet_receiver.h", |
| 93 | "test/packet_sender.cc", |
| 94 | "test/packet_sender.h", |
| 95 | ] |
| 96 | |
| 97 | if (rtc_enable_bwe_test_logging) { |
| 98 | defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ] |
| 99 | sources += [ "test/bwe_test_logging.cc" ] |
| 100 | } else { |
| 101 | defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ] |
| 102 | } |
| 103 | |
| 104 | configs += [ "../..:common_config" ] |
| 105 | public_configs = [ "../..:common_inherited_config" ] |
| 106 | |
| 107 | if (is_clang) { |
| 108 | # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). |
| 109 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 110 | } |
| 111 | |
| 112 | if (is_win) { |
| 113 | cflags = [ |
| 114 | # TODO(kjellander): Bug 261: fix this warning. |
| 115 | "/wd4373", # virtual function override. |
| 116 | ] |
| 117 | } |
| 118 | |
| 119 | deps = [ |
| 120 | "../../test:test_support", |
| 121 | "../pacing", |
| 122 | "//testing/gmock", |
| 123 | "//testing/gtest", |
| 124 | ] |
| 125 | } |
| 126 | } |