test_utils.h 527 B

123456789101112
  1. #pragma once
  2. // Do nothing if there is no support for IPv4
  3. #define ASSUME_IP_V4_ENABLED \
  4. do { \
  5. try { \
  6. TNetworkAddress("192.168.0.42", 80); \
  7. } catch (const TNetworkResolutionError& ex) { \
  8. Y_UNUSED(ex); \
  9. return; \
  10. } \
  11. } while (0)