src/connectivity/network/drivers/network-device/device/network_device-test.cc
// Test that opening a session with unknown Rx types will fail.
Test that opening a session with unknown Rx types will fail.
Test that opening a session with unknown Rx types will fail .
TEST_F(NetworkDeviceTest, RejectsInvalidRxTypes) {
  ASSERT_OK(CreateDevice());
  auto connection = OpenConnection();
  TestSession session;
  auto frame_type = netdev::FrameType::IPV4;
  ASSERT_STATUS(
      OpenSession(&session, netdev::SessionFlags::PRIMARY, kDefaultDescriptorCount,
                  kDefaultBufferLength, fidl::VectorView(fidl::unowned_ptr(&frame_type), 1)),
      ZX_ERR_INVALID_ARGS);
}
TEST_F ( NetworkDeviceTest , RejectsInvalidRxTypes ) { ASSERT_OK ( CreateDevice ( ) ) ; auto connection = OpenConnection ( ) ; TestSession session ; auto frame_type = netdev :: FrameType :: IPV4 ; ASSERT_STATUS ( OpenSession ( & session , netdev :: SessionFlags :: PRIMARY , kDefaultDescriptorCount , kDefaultBufferLength , fidl :: VectorView ( fidl :: unowned_ptr ( & frame_type ) , 1 ) ) , ZX_ERR_INVALID_ARGS ) ; }
Test that opening a session with unknown Rx types will fail.
Test that opening a session with unknown Rx types will fail .