Rename base/analytics/ to base/numerics/
BUG=webrtc:6832 Review-Url: https://codereview.webrtc.org/2626203002 Cr-Commit-Position: refs/heads/master@{#16060}
This commit is contained in:
@ -364,9 +364,9 @@ if (rtc_include_tests) {
|
||||
rtc_test("rtc_unittests") {
|
||||
testonly = true
|
||||
deps = [
|
||||
"base:rtc_analytics_unittests",
|
||||
"base:rtc_base_approved_unittests",
|
||||
"base:rtc_base_unittests",
|
||||
"base:rtc_numerics_unittests",
|
||||
"base:rtc_task_queue_unittests",
|
||||
"p2p:libstunprober_unittests",
|
||||
"p2p:rtc_p2p_unittests",
|
||||
|
||||
@ -337,11 +337,11 @@ rtc_static_library("rtc_task_queue") {
|
||||
}
|
||||
}
|
||||
|
||||
rtc_static_library("rtc_analytics") {
|
||||
rtc_static_library("rtc_numerics") {
|
||||
sources = [
|
||||
"analytics/exp_filter.cc",
|
||||
"analytics/exp_filter.h",
|
||||
"analytics/percentile_filter.h",
|
||||
"numerics/exp_filter.cc",
|
||||
"numerics/exp_filter.h",
|
||||
"numerics/percentile_filter.h",
|
||||
]
|
||||
deps = [
|
||||
":rtc_base_approved",
|
||||
@ -862,15 +862,15 @@ if (rtc_include_tests) {
|
||||
}
|
||||
}
|
||||
|
||||
rtc_source_set("rtc_analytics_unittests") {
|
||||
rtc_source_set("rtc_numerics_unittests") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"analytics/exp_filter_unittest.cc",
|
||||
"analytics/percentile_filter_unittest.cc",
|
||||
"numerics/exp_filter_unittest.cc",
|
||||
"numerics/percentile_filter_unittest.cc",
|
||||
]
|
||||
deps = [
|
||||
":rtc_analytics",
|
||||
":rtc_base_tests_main",
|
||||
":rtc_numerics",
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#include "webrtc/base/analytics/exp_filter.h"
|
||||
#include "webrtc/base/numerics/exp_filter.h"
|
||||
|
||||
#include <math.h>
|
||||
|
||||
@ -8,8 +8,8 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#ifndef WEBRTC_BASE_ANALYTICS_EXP_FILTER_H_
|
||||
#define WEBRTC_BASE_ANALYTICS_EXP_FILTER_H_
|
||||
#ifndef WEBRTC_BASE_NUMERICS_EXP_FILTER_H_
|
||||
#define WEBRTC_BASE_NUMERICS_EXP_FILTER_H_
|
||||
|
||||
namespace rtc {
|
||||
|
||||
@ -20,8 +20,7 @@ class ExpFilter {
|
||||
public:
|
||||
static const float kValueUndefined;
|
||||
|
||||
explicit ExpFilter(float alpha, float max = kValueUndefined)
|
||||
: max_(max) {
|
||||
explicit ExpFilter(float alpha, float max = kValueUndefined) : max_(max) {
|
||||
Reset(alpha);
|
||||
}
|
||||
|
||||
@ -40,10 +39,10 @@ class ExpFilter {
|
||||
void UpdateBase(float alpha);
|
||||
|
||||
private:
|
||||
float alpha_; // Filter factor base.
|
||||
float alpha_; // Filter factor base.
|
||||
float filtered_; // Current filter output.
|
||||
const float max_;
|
||||
};
|
||||
} // namespace rtc
|
||||
|
||||
#endif // WEBRTC_BASE_ANALYTICS_EXP_FILTER_H_
|
||||
#endif // WEBRTC_BASE_NUMERICS_EXP_FILTER_H_
|
||||
@ -10,7 +10,7 @@
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#include "webrtc/base/analytics/exp_filter.h"
|
||||
#include "webrtc/base/numerics/exp_filter.h"
|
||||
#include "webrtc/test/gtest.h"
|
||||
|
||||
namespace rtc {
|
||||
@ -8,8 +8,8 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#ifndef WEBRTC_BASE_ANALYTICS_PERCENTILE_FILTER_H_
|
||||
#define WEBRTC_BASE_ANALYTICS_PERCENTILE_FILTER_H_
|
||||
#ifndef WEBRTC_BASE_NUMERICS_PERCENTILE_FILTER_H_
|
||||
#define WEBRTC_BASE_NUMERICS_PERCENTILE_FILTER_H_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@ -112,4 +112,4 @@ T PercentileFilter<T>::GetPercentileValue() const {
|
||||
|
||||
} // namespace webrtc
|
||||
|
||||
#endif // WEBRTC_BASE_ANALYTICS_PERCENTILE_FILTER_H_
|
||||
#endif // WEBRTC_BASE_NUMERICS_PERCENTILE_FILTER_H_
|
||||
@ -11,8 +11,8 @@
|
||||
#include <algorithm>
|
||||
#include <climits>
|
||||
|
||||
#include "webrtc/base/analytics/percentile_filter.h"
|
||||
#include "webrtc/base/constructormagic.h"
|
||||
#include "webrtc/base/numerics/percentile_filter.h"
|
||||
#include "webrtc/test/gtest.h"
|
||||
|
||||
namespace webrtc {
|
||||
@ -837,8 +837,8 @@ rtc_static_library("webrtc_opus") {
|
||||
":audio_encoder_interface",
|
||||
":audio_network_adaptor",
|
||||
"../..:webrtc_common",
|
||||
"../../base:rtc_analytics",
|
||||
"../../base:rtc_base_approved",
|
||||
"../../base:rtc_numerics",
|
||||
"../../common_audio",
|
||||
"../../system_wrappers",
|
||||
]
|
||||
|
||||
@ -13,9 +13,9 @@
|
||||
#include <algorithm>
|
||||
#include <iterator>
|
||||
|
||||
#include "webrtc/base/analytics/exp_filter.h"
|
||||
#include "webrtc/base/checks.h"
|
||||
#include "webrtc/base/logging.h"
|
||||
#include "webrtc/base/numerics/exp_filter.h"
|
||||
#include "webrtc/base/safe_conversions.h"
|
||||
#include "webrtc/base/timeutils.h"
|
||||
#include "webrtc/common_types.h"
|
||||
|
||||
@ -44,9 +44,9 @@ rtc_static_library("congestion_controller") {
|
||||
|
||||
deps = [
|
||||
"../..:webrtc_common",
|
||||
"../../base:rtc_analytics",
|
||||
"../../base:rtc_base",
|
||||
"../../base:rtc_base_approved",
|
||||
"../../base:rtc_numerics",
|
||||
"../../system_wrappers",
|
||||
"../bitrate_controller",
|
||||
"../pacing",
|
||||
|
||||
@ -16,8 +16,8 @@
|
||||
#include <list>
|
||||
#include <vector>
|
||||
|
||||
#include "webrtc/base/analytics/percentile_filter.h"
|
||||
#include "webrtc/base/constructormagic.h"
|
||||
#include "webrtc/base/numerics/percentile_filter.h"
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
|
||||
@ -93,9 +93,9 @@ rtc_static_library("video_coding") {
|
||||
":webrtc_vp8",
|
||||
":webrtc_vp9",
|
||||
"../..:webrtc_common",
|
||||
"../../base:rtc_analytics",
|
||||
"../../base:rtc_base",
|
||||
"../../base:rtc_base_approved",
|
||||
"../../base:rtc_numerics",
|
||||
"../../base:rtc_task_queue",
|
||||
"../../common_video",
|
||||
"../../system_wrappers",
|
||||
@ -135,8 +135,8 @@ rtc_static_library("video_coding_utility") {
|
||||
|
||||
deps = [
|
||||
"../..:webrtc_common",
|
||||
"../../base:rtc_analytics",
|
||||
"../../base:rtc_base_approved",
|
||||
"../../base:rtc_numerics",
|
||||
"../../common_video",
|
||||
"../../system_wrappers",
|
||||
]
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
|
||||
#include <queue>
|
||||
|
||||
#include "webrtc/base/analytics/percentile_filter.h"
|
||||
#include "webrtc/base/numerics/percentile_filter.h"
|
||||
#include "webrtc/modules/include/module_common_types.h"
|
||||
#include "webrtc/typedefs.h"
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "webrtc/base/analytics/exp_filter.h"
|
||||
#include "webrtc/base/numerics/exp_filter.h"
|
||||
#include "webrtc/modules/video_coding/internal_defines.h"
|
||||
#include "webrtc/system_wrappers/include/trace.h"
|
||||
#include "webrtc/typedefs.h"
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
#include "webrtc/base/analytics/exp_filter.h"
|
||||
#include "webrtc/base/numerics/exp_filter.h"
|
||||
#include "webrtc/typedefs.h"
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
@ -58,8 +58,8 @@ rtc_static_library("video") {
|
||||
deps = [
|
||||
"..:webrtc_common",
|
||||
"../api:transport_api",
|
||||
"../base:rtc_analytics",
|
||||
"../base:rtc_base_approved",
|
||||
"../base:rtc_numerics",
|
||||
"../base:rtc_task_queue",
|
||||
"../common_video",
|
||||
"../logging:rtc_event_log_api",
|
||||
|
||||
@ -18,9 +18,9 @@
|
||||
#include <map>
|
||||
|
||||
#include "webrtc/api/video/video_frame.h"
|
||||
#include "webrtc/base/analytics/exp_filter.h"
|
||||
#include "webrtc/base/checks.h"
|
||||
#include "webrtc/base/logging.h"
|
||||
#include "webrtc/base/numerics/exp_filter.h"
|
||||
#include "webrtc/common_video/include/frame_callback.h"
|
||||
#include "webrtc/system_wrappers/include/clock.h"
|
||||
|
||||
|
||||
@ -14,8 +14,8 @@
|
||||
#include <list>
|
||||
#include <memory>
|
||||
|
||||
#include "webrtc/base/analytics/exp_filter.h"
|
||||
#include "webrtc/base/constructormagic.h"
|
||||
#include "webrtc/base/numerics/exp_filter.h"
|
||||
#include "webrtc/base/optional.h"
|
||||
#include "webrtc/base/sequenced_task_checker.h"
|
||||
#include "webrtc/base/task_queue.h"
|
||||
|
||||
@ -16,8 +16,8 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "webrtc/base/analytics/exp_filter.h"
|
||||
#include "webrtc/base/criticalsection.h"
|
||||
#include "webrtc/base/numerics/exp_filter.h"
|
||||
#include "webrtc/base/ratetracker.h"
|
||||
#include "webrtc/base/thread_annotations.h"
|
||||
#include "webrtc/common_types.h"
|
||||
|
||||
Reference in New Issue
Block a user