src/connectivity/network/mdns/service/test/mdns_unit_tests.cc
// Tests that a wireless+wired publisher multicasts to all interfaces.
Tests that a wireless+wired publisher multicasts to all interfaces.
Tests that a wireless + wired publisher multicasts to all interfaces .
TEST_F(MdnsUnitTests, PublishBoth) {
  SetHasInterfaces(true);
  Start(false);
  Publisher publisher;
  EXPECT_TRUE(under_test().PublishServiceInstance(kServiceName, kInstanceName, false,
                                                  Media::kBoth, &publisher));
  RunLoopUntilIdle();
  MdnsAddresses addresses;
  ExpectSendMessageCalled(addresses.multicast_reply());
  under_test().Stop();
  RunLoopUntilIdle();
}
TEST_F ( MdnsUnitTests , PublishBoth ) { SetHasInterfaces ( true ) ; Start ( false ) ; Publisher publisher ; EXPECT_TRUE ( under_test ( ) . PublishServiceInstance ( kServiceName , kInstanceName , false , Media :: kBoth , & publisher ) ) ; RunLoopUntilIdle ( ) ; MdnsAddresses addresses ; ExpectSendMessageCalled ( addresses . multicast_reply ( ) ) ; under_test ( ) . Stop ( ) ; RunLoopUntilIdle ( ) ; }
Tests that a wireless+wired publisher multicasts to all interfaces.
Tests that a wireless + wired publisher multicasts to all interfaces .
// Start. // Publish wired-only. // Clean up.