(4) Rename files to snake_case: update BUILD.gn, include paths, header guards, and DEPS entries
Mechanically generated by running this command:
tools_webrtc/do-renames.sh update all-renames.txt && git cl format
Then manually updating:
tools_webrtc/sanitizers/tsan_suppressions_webrtc.cc
Bug: webrtc:10159
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Change-Id: I54824cd91dada8fc3ee3d098f971bc319d477833
Reviewed-on: https://webrtc-review.googlesource.com/c/115653
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#26226}
diff --git a/stats/BUILD.gn b/stats/BUILD.gn
index c16d8d1..85fe091 100644
--- a/stats/BUILD.gn
+++ b/stats/BUILD.gn
@@ -18,9 +18,9 @@
visibility = [ "*" ]
cflags = []
sources = [
- "rtcstats.cc",
+ "rtc_stats.cc",
+ "rtc_stats_report.cc",
"rtcstats_objects.cc",
- "rtcstatsreport.cc",
]
deps = [
@@ -34,8 +34,8 @@
visibility = [ "*" ]
cflags = []
sources = [
- "test/rtcteststats.cc",
- "test/rtcteststats.h",
+ "test/rtc_test_stats.cc",
+ "test/rtc_test_stats.h",
]
deps = [
@@ -50,8 +50,8 @@
rtc_test("rtc_stats_unittests") {
testonly = true
sources = [
- "rtcstats_unittest.cc",
- "rtcstatsreport_unittest.cc",
+ "rtc_stats_report_unittest.cc",
+ "rtc_stats_unittest.cc",
]
deps = [
diff --git a/stats/rtc_stats.cc b/stats/rtc_stats.cc
index d5ea319..4332fe6 100644
--- a/stats/rtc_stats.cc
+++ b/stats/rtc_stats.cc
@@ -8,12 +8,12 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#include "api/stats/rtcstats.h"
+#include "api/stats/rtc_stats.h"
#include <cstdio>
#include "rtc_base/arraysize.h"
-#include "rtc_base/stringencode.h"
+#include "rtc_base/string_encode.h"
#include "rtc_base/strings/string_builder.h"
namespace webrtc {
diff --git a/stats/rtc_stats_report.cc b/stats/rtc_stats_report.cc
index 82db8f6..bdafd56 100644
--- a/stats/rtc_stats_report.cc
+++ b/stats/rtc_stats_report.cc
@@ -8,7 +8,7 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#include "api/stats/rtcstatsreport.h"
+#include "api/stats/rtc_stats_report.h"
#include <type_traits>
#include <utility>
diff --git a/stats/rtc_stats_report_unittest.cc b/stats/rtc_stats_report_unittest.cc
index 80a6f2d..a7d4a42 100644
--- a/stats/rtc_stats_report_unittest.cc
+++ b/stats/rtc_stats_report_unittest.cc
@@ -8,9 +8,9 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#include "api/stats/rtcstatsreport.h"
+#include "api/stats/rtc_stats_report.h"
-#include "api/stats/rtcstats.h"
+#include "api/stats/rtc_stats.h"
#include "rtc_base/checks.h"
#include "test/gtest.h"
diff --git a/stats/rtc_stats_unittest.cc b/stats/rtc_stats_unittest.cc
index 95a4015..b079ddd 100644
--- a/stats/rtc_stats_unittest.cc
+++ b/stats/rtc_stats_unittest.cc
@@ -8,7 +8,7 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#include "api/stats/rtcstats.h"
+#include "api/stats/rtc_stats.h"
#include <cmath>
#include <cstdint>
@@ -17,7 +17,7 @@
#include "rtc_base/checks.h"
#include "rtc_base/strings/json.h"
-#include "stats/test/rtcteststats.h"
+#include "stats/test/rtc_test_stats.h"
#include "test/gtest.h"
namespace webrtc {
diff --git a/stats/test/rtc_test_stats.cc b/stats/test/rtc_test_stats.cc
index 538f303..d5576e6 100644
--- a/stats/test/rtc_test_stats.cc
+++ b/stats/test/rtc_test_stats.cc
@@ -8,7 +8,7 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#include "stats/test/rtcteststats.h"
+#include "stats/test/rtc_test_stats.h"
#include "rtc_base/checks.h"
diff --git a/stats/test/rtc_test_stats.h b/stats/test/rtc_test_stats.h
index 766d045..1db32c2 100644
--- a/stats/test/rtc_test_stats.h
+++ b/stats/test/rtc_test_stats.h
@@ -8,14 +8,14 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#ifndef STATS_TEST_RTCTESTSTATS_H_
-#define STATS_TEST_RTCTESTSTATS_H_
+#ifndef STATS_TEST_RTC_TEST_STATS_H_
+#define STATS_TEST_RTC_TEST_STATS_H_
#include <cstdint>
#include <string>
#include <vector>
-#include "api/stats/rtcstats.h"
+#include "api/stats/rtc_stats.h"
#include "rtc_base/system/rtc_export.h"
namespace webrtc {
@@ -46,4 +46,4 @@
} // namespace webrtc
-#endif // STATS_TEST_RTCTESTSTATS_H_
+#endif // STATS_TEST_RTC_TEST_STATS_H_