Files
DRAMSys/DRAM/testing/testUtils.h
Janik Schlemminger bf1ae66018 Fixed gmock warnings (declare expect_call for every mock function call)
Testing of CommandBus
-cleanUpBusWorks
2014-03-13 16:57:21 -07:00

30 lines
1.2 KiB
C++

#ifndef TESTUTILS_H
#define TESTUTILS_H
#include <tlm.h>
#include <memory>
#include "common/dramextension.h"
#include "core/scheduling/ScheduledCommand.h"
std::shared_ptr<tlm::tlm_generic_payload> createDummyPayload();
std::shared_ptr<tlm::tlm_generic_payload> createDummyPayload(common::DramExtension* extension);
std::shared_ptr<tlm::tlm_generic_payload> createDummyPayload(const common::Thread& thread,
const common::Bank& bank, const common::Row& row, const common::Column& column);
std::shared_ptr<tlm::tlm_generic_payload> createDummyPayload(const common::Thread& thread,
const common::Bank& bank, const common::Row& row);
std::shared_ptr<tlm::tlm_generic_payload> createDummyPayload(const common::Thread& thread,
const common::Bank& bank);
std::shared_ptr<tlm::tlm_generic_payload> createDummyPayload(const common::Thread& thread,
const common::Bank& bank, const common::Row& row, const common::Column& column,
const tlm::tlm_command& command);
//std::shared_ptr<controller::ScheduledCommand> createDummyScheduledCommand(const sc_time);
//TODO .. wenn in implementierung create dummypayload dereferenziert an ScheduledCommand .. out of scope .. reference zu nichtS?
#endif // TESTUTILS_H