| 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") | |
| 11 | 10 |
| 12 declare_args() { | 11 declare_args() { |
| 13 # Set this to true to enable BWE test logging. | 12 # Set this to true to enable BWE test logging. |
| 14 rtc_enable_bwe_test_logging = false | 13 rtc_enable_bwe_test_logging = false |
| 15 } | 14 } |
| 16 | 15 |
| 17 source_set("remote_bitrate_estimator") { | 16 rtc_source_set("remote_bitrate_estimator") { |
| 18 sources = [ | 17 sources = [ |
| 19 "aimd_rate_control.cc", | 18 "aimd_rate_control.cc", |
| 20 "aimd_rate_control.h", | 19 "aimd_rate_control.h", |
| 21 "bwe_defines.cc", | 20 "bwe_defines.cc", |
| 22 "include/bwe_defines.h", | 21 "include/bwe_defines.h", |
| 23 "include/remote_bitrate_estimator.h", | 22 "include/remote_bitrate_estimator.h", |
| 24 "include/send_time_history.h", | 23 "include/send_time_history.h", |
| 25 "inter_arrival.cc", | 24 "inter_arrival.cc", |
| 26 "inter_arrival.h", | 25 "inter_arrival.h", |
| 27 "overuse_detector.cc", | 26 "overuse_detector.cc", |
| (...skipping 17 matching lines...) Expand all Loading... |
| 45 sources += [ "test/bwe_test_logging.cc" ] | 44 sources += [ "test/bwe_test_logging.cc" ] |
| 46 } else { | 45 } else { |
| 47 defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ] | 46 defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ] |
| 48 } | 47 } |
| 49 | 48 |
| 50 configs += [ "../..:common_config" ] | 49 configs += [ "../..:common_config" ] |
| 51 public_configs = [ "../..:common_inherited_config" ] | 50 public_configs = [ "../..:common_inherited_config" ] |
| 52 | 51 |
| 53 if (is_clang) { | 52 if (is_clang) { |
| 54 # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). | 53 # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). |
| 55 configs -= [ "//build/config/clang:find_bad_constructs" ] | 54 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 56 } | 55 } |
| 57 | 56 |
| 58 deps = [ | 57 deps = [ |
| 59 "../..:webrtc_common", | 58 "../..:webrtc_common", |
| 60 "../../base:rtc_base_approved", | 59 "../../base:rtc_base_approved", |
| 61 "../../system_wrappers", | 60 "../../system_wrappers", |
| 62 ] | 61 ] |
| 63 } | 62 } |
| 64 | 63 |
| 65 if (rtc_include_tests) { | 64 if (rtc_include_tests) { |
| 66 source_set("bwe_simulator") { | 65 rtc_source_set("bwe_simulator") { |
| 67 testonly = true | 66 testonly = true |
| 68 sources = [ | 67 sources = [ |
| 69 "test/bwe.cc", | 68 "test/bwe.cc", |
| 70 "test/bwe.h", | 69 "test/bwe.h", |
| 71 "test/bwe_test.cc", | 70 "test/bwe_test.cc", |
| 72 "test/bwe_test.h", | 71 "test/bwe_test.h", |
| 73 "test/bwe_test_baselinefile.cc", | 72 "test/bwe_test_baselinefile.cc", |
| 74 "test/bwe_test_baselinefile.h", | 73 "test/bwe_test_baselinefile.h", |
| 75 "test/bwe_test_fileutils.cc", | 74 "test/bwe_test_fileutils.cc", |
| 76 "test/bwe_test_fileutils.h", | 75 "test/bwe_test_fileutils.h", |
| (...skipping 22 matching lines...) Expand all Loading... |
| 99 sources += [ "test/bwe_test_logging.cc" ] | 98 sources += [ "test/bwe_test_logging.cc" ] |
| 100 } else { | 99 } else { |
| 101 defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ] | 100 defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ] |
| 102 } | 101 } |
| 103 | 102 |
| 104 configs += [ "../..:common_config" ] | 103 configs += [ "../..:common_config" ] |
| 105 public_configs = [ "../..:common_inherited_config" ] | 104 public_configs = [ "../..:common_inherited_config" ] |
| 106 | 105 |
| 107 if (is_clang) { | 106 if (is_clang) { |
| 108 # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). | 107 # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). |
| 109 configs -= [ "//build/config/clang:find_bad_constructs" ] | 108 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 110 } | 109 } |
| 111 | 110 |
| 112 if (is_win) { | 111 if (is_win) { |
| 113 cflags = [ | 112 cflags = [ |
| 114 # TODO(kjellander): Bug 261: fix this warning. | 113 # TODO(kjellander): Bug 261: fix this warning. |
| 115 "/wd4373", # virtual function override. | 114 "/wd4373", # virtual function override. |
| 116 ] | 115 ] |
| 117 } | 116 } |
| 118 | 117 |
| 119 deps = [ | 118 deps = [ |
| 120 "../../test:test_support", | 119 "../../test:test_support", |
| 121 "../pacing", | 120 "../pacing", |
| 122 "//testing/gmock", | 121 "//testing/gmock", |
| 123 "//testing/gtest", | 122 "//testing/gtest", |
| 124 ] | 123 ] |
| 125 } | 124 } |
| 126 } | 125 } |
| OLD | NEW |