something something
This commit is contained in:
40
DRAM/testing/Controller_test.cpp
Normal file
40
DRAM/testing/Controller_test.cpp
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user