Migrate base::{size,empty,data} to STL equivalents in //base.
This is not a complete migration; this only migrates fully-qualified
references to these functions, with the minimal set of build fixes
needed to make things compile.
Bug: 1299695
Change-Id: Ib7359b018dae054adcc87e435aee0f186c74fd50
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3492822
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Owners-Override: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#975977}
diff --git a/base/profiler/chrome_unwinder_android_v2_unittest.cc b/base/profiler/chrome_unwinder_android_v2_unittest.cc
index b76d5d9..67ea7a8 100644
--- a/base/profiler/chrome_unwinder_android_v2_unittest.cc
+++ b/base/profiler/chrome_unwinder_android_v2_unittest.cc
@@ -1002,7 +1002,7 @@
TEST(ChromeUnwinderAndroidV2Test, TryUnwind) {
const uint32_t page_table[] = {0, 2};
- const size_t number_of_pages = base::size(page_table);
+ const size_t number_of_pages = std::size(page_table);
const size_t page_size = 1 << 17;
const FunctionTableEntry function_table[] = {
@@ -1044,10 +1044,10 @@
};
auto unwind_info = ChromeUnwindInfoAndroid{
- make_span(unwind_instruction_table, base::size(unwind_instruction_table)),
- make_span(function_offset_table, base::size(function_offset_table)),
- make_span(function_table, base::size(function_table)),
- make_span(page_table, base::size(page_table)),
+ make_span(unwind_instruction_table, std::size(unwind_instruction_table)),
+ make_span(function_offset_table, std::size(function_offset_table)),
+ make_span(function_table, std::size(function_table)),
+ make_span(page_table, std::size(page_table)),
};
ModuleCache module_cache;