Remove sstream code from socket_address
Bug: webrtc:8982 Change-Id: I85f1678aa02a51ddad083fb299577cfa5d364df8 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/355905 Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Auto-Submit: Tomas Gunnarsson <tommi@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/main@{#42570}
This commit is contained in:
parent
7e59d264f1
commit
f101f3f803
@ -14,9 +14,6 @@
|
||||
#include <string>
|
||||
|
||||
#include "absl/strings/string_view.h"
|
||||
#ifdef WEBRTC_UNIT_TEST
|
||||
#include <ostream> // no-presubmit-check TODO(webrtc:8982)
|
||||
#endif // WEBRTC_UNIT_TEST
|
||||
#include "rtc_base/ip_address.h"
|
||||
#include "rtc_base/system/rtc_export.h"
|
||||
|
||||
@ -133,13 +130,6 @@ class RTC_EXPORT SocketAddress {
|
||||
// Parses hostname:port and [hostname]:port.
|
||||
bool FromString(absl::string_view str);
|
||||
|
||||
#ifdef WEBRTC_UNIT_TEST
|
||||
inline std::ostream& operator<<( // no-presubmit-check TODO(webrtc:8982)
|
||||
std::ostream& os) { // no-presubmit-check TODO(webrtc:8982)
|
||||
return os << HostAsURIString() << ":" << port();
|
||||
}
|
||||
#endif // WEBRTC_UNIT_TEST
|
||||
|
||||
// Determines whether this represents a missing / any IP address.
|
||||
// That is, 0.0.0.0 or ::.
|
||||
// Hostname and/or port may be set.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user