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