/* * Controller_test.cpp * * Created on: Mar 15, 2014 * Author: gernhard */ #include #include #include #include "tlm/IControllerWrapper.h" #include "testUtils.h" #include "../common/dramExtension.h" #include "core/ControllerCore.h" #include using namespace std; using namespace testing; namespace core { class MockWrapper: public IControllerWrapper { public: MOCK_METHOD3(sendCommand, void (sc_time time, tlm::tlm_generic_payload& payload, Command command)); MOCK_METHOD2(sendTrigger, void (sc_time time, Trigger trigger)); }; TEST(controllerTest,controllerStartup) { MockWrapper wrapper; DramController controller(wrapper); } }