Reland "Replace the usage of MetricsObserverInterface by RTC_HISTOGRAM_*."
This is a reland of 870bca1f418a1abf445169a638a61f9a649d557f Original change's description: > Replace the usage of MetricsObserverInterface by RTC_HISTOGRAM_*. > > We now use RTC_HISTOGRAM_* macros in system_wrappers/include/metrics.h > to report the metrics in pc/ and p2p/ that are currently been reported > using MetricsObserverInterface. > > TBR=tommi@webrtc.org > > Bug: webrtc:9409 > Change-Id: I47c9975402293c72250203fa1ec19eb1668766f6 > Reviewed-on: https://webrtc-review.googlesource.com/83782 > Commit-Queue: Qingsi Wang <qingsi@google.com> > Reviewed-by: Harald Alvestrand <hta@webrtc.org> > Reviewed-by: Taylor (left Google) <deadbeef@webrtc.org> > Reviewed-by: Steve Anton <steveanton@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#23914} TBR=steveanton@webrtc.org,hta@webrtc.org,tommi@webrtc.org Bug: webrtc:9409 Change-Id: I37fc95ced60dea25aa9b4f5ad44bdf7174c8bd5c Reviewed-on: https://webrtc-review.googlesource.com/88060 Reviewed-by: Qingsi Wang <qingsi@webrtc.org> Commit-Queue: Qingsi Wang <qingsi@google.com> Cr-Commit-Position: refs/heads/master@{#23919}
This commit is contained in:
@ -1066,6 +1066,7 @@ if (rtc_include_tests) {
|
||||
":rtc_base_approved",
|
||||
":rtc_base_tests_utils",
|
||||
"../system_wrappers:field_trial_default",
|
||||
"../system_wrappers:metrics_default",
|
||||
"../test:field_trial",
|
||||
"../test:fileutils",
|
||||
"../test:test_support",
|
||||
|
@ -22,6 +22,7 @@ namespace rtc {
|
||||
|
||||
// Constants for SSL profile.
|
||||
const int TLS_NULL_WITH_NULL_NULL = 0;
|
||||
const int SSL_CIPHER_SUITE_MAX_VALUE = 0xFFFF;
|
||||
|
||||
// Constants for SRTP profiles.
|
||||
const int SRTP_INVALID_CRYPTO_SUITE = 0;
|
||||
@ -37,6 +38,7 @@ const int SRTP_AEAD_AES_128_GCM = 0x0007;
|
||||
#ifndef SRTP_AEAD_AES_256_GCM
|
||||
const int SRTP_AEAD_AES_256_GCM = 0x0008;
|
||||
#endif
|
||||
const int SRTP_CRYPTO_SUITE_MAX_VALUE = 0xFFFF;
|
||||
|
||||
// Names of SRTP profiles listed above.
|
||||
// 128-bit AES with 80-bit SHA-1 HMAC.
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include "rtc_base/ssladapter.h"
|
||||
#include "rtc_base/sslstreamadapter.h"
|
||||
#include "system_wrappers/include/field_trial_default.h"
|
||||
#include "system_wrappers/include/metrics_default.h"
|
||||
#include "test/field_trial.h"
|
||||
#include "test/testsupport/fileutils.h"
|
||||
|
||||
@ -81,6 +82,7 @@ int main(int argc, char* argv[]) {
|
||||
// InitFieldTrialsFromString stores the char*, so the char array must outlive
|
||||
// the application.
|
||||
webrtc::field_trial::InitFieldTrialsFromString(FLAG_force_fieldtrials);
|
||||
webrtc::metrics::Enable();
|
||||
|
||||
#if defined(WEBRTC_WIN)
|
||||
if (!FLAG_default_error_handlers) {
|
||||
|
Reference in New Issue
Block a user