Conveninence fixture for creating device tests. More...
#include <sw/device/lib/base/mock_mmio.h>
Protected Member Functions | |
| MockDevice & | dev () | 
Conveninence fixture for creating device tests.
This class should be derived by a test fixture (along with testing::Test) and used in a TEST_F block. Doing so will make the EXPECT_READN and EXPECT_WRITEN conveinence macros useable.
The device being mocked can be accessed in the test body with this->dev(). this-> is required in this case, since the name dev is not immediately visible. 
Definition at line 94 of file mock_mmio.h.
      
  | 
  inlineprotected | 
Definition at line 96 of file mock_mmio.h.