Adopt absl::string_view in function parameters under rtc_base/
This is part of a large-scale effort to increase adoption of absl::string_view across the WebRTC code base. This CL converts the majority of "const std::string&"s in function parameters under rtc_base/ to absl::string_view. Bug: webrtc:13579 Change-Id: I2b1e3776aa42326aa405f76bb324a2d233b21dca Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/254081 Reviewed-by: Niels Moller <nisse@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Xavier Lepaul <xalep@webrtc.org> Reviewed-by: Anders Lilienthal <andersc@webrtc.org> Reviewed-by: Per Kjellander <perkj@webrtc.org> Commit-Queue: Ali Tofigh <alito@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36239}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
1a08096998
commit
7fa9057a05
@ -11,6 +11,7 @@
|
||||
#ifndef RTC_BASE_SOCKET_UNITTEST_H_
|
||||
#define RTC_BASE_SOCKET_UNITTEST_H_
|
||||
|
||||
#include "absl/strings/string_view.h"
|
||||
#include "rtc_base/gunit.h"
|
||||
#include "rtc_base/thread.h"
|
||||
|
||||
@ -74,7 +75,7 @@ class SocketTest : public ::testing::Test {
|
||||
private:
|
||||
void ConnectInternal(const IPAddress& loopback);
|
||||
void ConnectWithDnsLookupInternal(const IPAddress& loopback,
|
||||
const std::string& host);
|
||||
absl::string_view host);
|
||||
void ConnectFailInternal(const IPAddress& loopback);
|
||||
|
||||
void ConnectWithDnsLookupFailInternal(const IPAddress& loopback);
|
||||
|
||||
Reference in New Issue
Block a user