Files
DRAMSys/dram/testing/Controller_test.cpp
2014-04-05 12:18:34 +02:00

41 lines
735 B
C++

/*
* Controller_test.cpp
*
* Created on: Mar 15, 2014
* Author: gernhard
*/
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include <core/refresh/BankwiseRefreshManager.h>
#include "tlm/IControllerWrapper.h"
#include "testUtils.h"
#include "../common/dramExtension.h"
#include "core/ControllerCore.h"
#include <tlm.h>
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);
}
}