Files
DRAMSys/DRAM/testing/Controller_test.cpp
Robert Gernhardt 75a3cc4327 something something
2014-03-15 22:52:57 +01:00

41 lines
728 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/Controller.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);
}
}