Victor Boivie a4d5e24c11 dcsctp: Added common utilities
These are quite generic utilities that are used by multiple modules
within dcSCTP. Some would be good to have in rtc_base and are simple
replicas of utilities available in abseil.

Bug: webrtc:12614
Change-Id: I9914286ced7317a34628a71697da9149d6d19d38
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/213190
Reviewed-by: Tommi <tommi@webrtc.org>
Commit-Queue: Victor Boivie <boivie@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#33609}
2021-04-01 05:45:34 +00:00

56 lines
1.3 KiB
Plaintext

# Copyright (c) 2021 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file in the root of the source
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS. All contributing project authors may
# be found in the AUTHORS file in the root of the source tree.
import("//build/config/linux/pkg_config.gni")
import("../../../webrtc.gni")
rtc_source_set("math") {
deps = []
sources = [ "math.h" ]
}
rtc_source_set("pair_hash") {
deps = []
sources = [ "pair_hash.h" ]
}
rtc_source_set("sequence_numbers") {
deps = []
sources = [ "sequence_numbers.h" ]
}
rtc_source_set("str_join") {
deps = []
sources = [ "str_join.h" ]
}
if (rtc_include_tests) {
rtc_library("dcsctp_common_unittests") {
testonly = true
defines = []
deps = [
":math",
":pair_hash",
":sequence_numbers",
":str_join",
"../../../api:array_view",
"../../../rtc_base:checks",
"../../../rtc_base:gunit_helpers",
"../../../rtc_base:rtc_base_approved",
"../../../test:test_support",
]
sources = [
"math_test.cc",
"pair_hash_test.cc",
"sequence_numbers_test.cc",
"str_join_test.cc",
]
}
}