Allow log print of data units.
Bug: webrtc:9709 Change-Id: I5987a9779e645115dc1893944302a73d540bcf2f Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/125680 Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Sebastian Jansson <srte@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27578}
This commit is contained in:
committed by
Commit Bot
parent
4d7160e41d
commit
b113862ccd
@ -9,11 +9,19 @@
|
||||
*/
|
||||
|
||||
#include "api/units/data_rate.h"
|
||||
#include "rtc_base/logging.h"
|
||||
#include "test/gtest.h"
|
||||
|
||||
namespace webrtc {
|
||||
namespace test {
|
||||
|
||||
TEST(DataRateTest, CompilesWithChecksAndLogs) {
|
||||
DataRate a = DataRate::kbps(300);
|
||||
DataRate b = DataRate::kbps(210);
|
||||
RTC_CHECK_GT(a, b);
|
||||
RTC_LOG(LS_INFO) << a;
|
||||
}
|
||||
|
||||
TEST(DataRateTest, ConstExpr) {
|
||||
constexpr int64_t kValue = 12345;
|
||||
constexpr DataRate kDataRateZero = DataRate::Zero();
|
||||
|
||||
Reference in New Issue
Block a user