Remove usage of base::make_span(): components/, part 1
Replace with span() CTAD use, or more targeted helpers.
Bug: 341907909
Change-Id: I2e01d181784c372fdc7aac8b2b847a20fb6ea32e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6058764
Code-Coverage: [email protected] <[email protected]>
Commit-Queue: Colin Blundell <[email protected]>
Auto-Submit: Peter Kasting <[email protected]>
Reviewed-by: Colin Blundell <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1390221}
diff --git a/components/media_effects/media_effects_service_unittest.cc b/components/media_effects/media_effects_service_unittest.cc
index f027d18..9bbc5f7 100644
--- a/components/media_effects/media_effects_service_unittest.cc
+++ b/components/media_effects/media_effects_service_unittest.cc
@@ -345,8 +345,7 @@
// Validate that the contents match the contents of the model file:
std::string contents(sizeof(kFirstModelBytes), '\0');
- ASSERT_TRUE(
- model_file.Read(0, base::as_writable_bytes(base::make_span(contents))));
+ ASSERT_TRUE(model_file.Read(0, base::as_writable_byte_span(contents)));
EXPECT_STREQ(contents.data(), kFirstModelBytes);
// Setting the model file path for the second time propagates the model file
@@ -366,8 +365,7 @@
// Validate that the contents match the contents of the model file:
contents.resize(sizeof(kSecondModelBytes));
- ASSERT_TRUE(
- model_file.Read(0, base::as_writable_bytes(base::make_span(contents))));
+ ASSERT_TRUE(model_file.Read(0, base::as_writable_byte_span(contents)));
EXPECT_STREQ(contents.data(), kSecondModelBytes);
// Setting the model file to a path that doesn't exist does not propagate the