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") |
| 10 import("//testing/test.gni") |
| 11 |
9 declare_args() { | 12 declare_args() { |
10 # Set this to true to enable BWE test logging. | 13 # Set this to true to enable BWE test logging. |
11 rtc_enable_bwe_test_logging = false | 14 rtc_enable_bwe_test_logging = false |
12 } | 15 } |
13 | 16 |
14 source_set("remote_bitrate_estimator") { | 17 source_set("remote_bitrate_estimator") { |
15 sources = [ | 18 sources = [ |
16 "aimd_rate_control.cc", | 19 "aimd_rate_control.cc", |
17 "aimd_rate_control.h", | 20 "aimd_rate_control.h", |
18 "include/bwe_defines.h", | 21 "include/bwe_defines.h", |
(...skipping 21 matching lines...) Expand all Loading... |
40 defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ] | 43 defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ] |
41 sources += [ "test/bwe_test_logging.cc" ] | 44 sources += [ "test/bwe_test_logging.cc" ] |
42 } else { | 45 } else { |
43 defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ] | 46 defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ] |
44 } | 47 } |
45 | 48 |
46 configs += [ "../..:common_config" ] | 49 configs += [ "../..:common_config" ] |
47 public_configs = [ "../..:common_inherited_config" ] | 50 public_configs = [ "../..:common_inherited_config" ] |
48 | 51 |
49 if (is_clang) { | 52 if (is_clang) { |
50 # Suppress warnings from Chrome's Clang plugins. | 53 # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). |
51 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | |
52 configs -= [ "//build/config/clang:find_bad_constructs" ] | 54 configs -= [ "//build/config/clang:find_bad_constructs" ] |
53 } | 55 } |
54 | 56 |
55 deps = [ | 57 deps = [ |
56 "../..:webrtc_common", | 58 "../..:webrtc_common", |
57 "../../base:rtc_base_approved", | 59 "../../base:rtc_base_approved", |
58 "../../system_wrappers", | 60 "../../system_wrappers", |
59 ] | 61 ] |
60 } | 62 } |
| 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 } |
OLD | NEW |