class TestVirtioNetDriver
Defined at line 142 of file ../../src/connectivity/ethernet/drivers/virtio/netdevice_test.cc
The test driver exists to override the creation of the NetworkDevice object. It needs to be
created with the fake backend, something that can't be injected since it's instantiated with a
specific type in the driver class. Since the driver class is extremely simplistic, it really only
exists to create the NetworkDevice (which does all the work), we assume that covering only
NetworkDevice gives us enough confidence.
Public Methods
void TestVirtioNetDriver (fdf::DriverStartArgs start_args, fdf::UnownedSynchronizedDispatcher dispatcher)
Defined at line 144 of file ../../src/connectivity/ethernet/drivers/virtio/netdevice_test.cc
void SetWithStatusFeature (bool supported)
Allow tests to configure the backend before the driver starts. If these values are set they
will be applied to the backend at creation.
Defined at line 150 of file ../../src/connectivity/ethernet/drivers/virtio/netdevice_test.cc
void SetSupportFeatureV1 (bool v1)
Defined at line 151 of file ../../src/connectivity/ethernet/drivers/virtio/netdevice_test.cc
FakeBackendForNetdeviceTest * backend ()
Defined at line 153 of file ../../src/connectivity/ethernet/drivers/virtio/netdevice_test.cc