mirror of
https://github.com/akuker/RASCSI.git
synced 2025-01-31 04:35:11 +00:00
23 lines
554 B
C++
23 lines
554 B
C++
|
//---------------------------------------------------------------------------
|
||
|
//
|
||
|
// SCSI Target Emulator RaSCSI Reloaded
|
||
|
// for Raspberry Pi
|
||
|
//
|
||
|
// Copyright (C) 2022 Uwe Seimet
|
||
|
//
|
||
|
//---------------------------------------------------------------------------
|
||
|
|
||
|
#include "testing.h"
|
||
|
#include "controllers/scsi_controller.h"
|
||
|
|
||
|
TEST(ScsiControllerTest, ScsiController)
|
||
|
{
|
||
|
MockBus bus;
|
||
|
MockScsiController controller(&bus, 0);
|
||
|
|
||
|
EXPECT_EQ(32, controller.GetMaxLuns());
|
||
|
|
||
|
EXPECT_CALL(controller, SetPhase(BUS::phase_t::busfree)).Times(1);
|
||
|
controller.Reset();
|
||
|
}
|