mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-12 21:30:45 +01:00
Reland "Skip NetworkTest if IPV4 is not available"
This reverts commitc71bfccaa5
. Reason for revert: Downstream is seemingly fixed. Original change's description: > Revert "Skip NetworkTest if IPV4 is not available" > > This reverts commit73ae5ca594
. > > Reason for revert: Speculative revert due to downstream project breaking. > > Original change's description: > > Skip NetworkTest if IPV4 is not available > > > > Bug: b/292167110 > > Change-Id: I6d55524e53d134d9828a85b9d38a4fea71f0af5b > > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/314920 > > Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> > > Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> > > Cr-Commit-Position: refs/heads/main@{#40509} > > Bug: b/292167110 > Change-Id: I1322d239e699e005419fbb33bf9b00eed0e07664 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/315000 > Commit-Queue: Christoffer Jansson <jansson@webrtc.org> > Bot-Commit: rubber-stamper@appspot.gserviceaccount.com <rubber-stamper@appspot.gserviceaccount.com> > Owners-Override: Christoffer Jansson <jansson@webrtc.org> > Cr-Commit-Position: refs/heads/main@{#40515} Bug: b/292167110 Change-Id: I5fe4ea203118b043a83b046144f2a9420b1cba77 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/315060 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Christoffer Jansson <jansson@webrtc.org> Bot-Commit: rubber-stamper@appspot.gserviceaccount.com <rubber-stamper@appspot.gserviceaccount.com> Cr-Commit-Position: refs/heads/main@{#40516}
This commit is contained in:
parent
c71bfccaa5
commit
8dc55689d2
1 changed files with 8 additions and 0 deletions
|
@ -21,6 +21,7 @@
|
|||
#include "absl/strings/string_view.h"
|
||||
#include "rtc_base/checks.h"
|
||||
#include "rtc_base/net_helpers.h"
|
||||
#include "rtc_base/net_test_helpers.h"
|
||||
#include "rtc_base/network_monitor.h"
|
||||
#include "rtc_base/network_monitor_factory.h"
|
||||
#include "rtc_base/physical_socket_server.h"
|
||||
|
@ -45,6 +46,12 @@ using ::testing::UnorderedElementsAreArray;
|
|||
|
||||
namespace rtc {
|
||||
|
||||
#define MAYBE_SKIP_IPV4 \
|
||||
if (!HasIPv4Enabled()) { \
|
||||
RTC_LOG(LS_INFO) << "No IPv4... skipping"; \
|
||||
return; \
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
IPAddress IPFromString(absl::string_view str) {
|
||||
|
@ -1263,6 +1270,7 @@ TEST_F(NetworkTest, TestNetworkMonitoring) {
|
|||
#define MAYBE_DefaultLocalAddress DefaultLocalAddress
|
||||
#endif
|
||||
TEST_F(NetworkTest, MAYBE_DefaultLocalAddress) {
|
||||
MAYBE_SKIP_IPV4;
|
||||
IPAddress ip;
|
||||
FakeNetworkMonitorFactory factory;
|
||||
PhysicalSocketServer socket_server;
|
||||
|
|
Loading…
Reference in a new issue