class TDMBuffer: public ::testing::Test
{
protected:
- static tbm_bufmgr tbm_bufmgr;
+ static tbm_bufmgr tbm_bufmgr_s;
static int master_fd;
tbm_surface_h surface;
static void SetUpTestCase()
{
SetEnv();
- tbm_bufmgr = tbm_bufmgr_init(-1);
- ASSERT_FALSE(tbm_bufmgr == NULL);
+ tbm_bufmgr_s = tbm_bufmgr_init(-1);
+ ASSERT_FALSE(tbm_bufmgr_s == NULL);
master_fd = tbm_drm_helper_get_master_fd();
}
static void TearDownTestCase()
{
- tbm_bufmgr_deinit(tbm_bufmgr);
- tbm_bufmgr = NULL;
+ tbm_bufmgr_deinit(tbm_bufmgr_s);
+ tbm_bufmgr_s = NULL;
if (master_fd > -1) {
int temp_master_fd = tbm_drm_helper_get_master_fd();
}
};
-tbm_bufmgr TDMBuffer::tbm_bufmgr = NULL;
+tbm_bufmgr TDMBuffer::tbm_bufmgr_s = NULL;
int TDMBuffer::master_fd = -42;
protected:
int conn_output_count = 0;
tdm_output ** connected_output_array = NULL;
- tdm_output_mode** preferred_mode = NULL;
+ const tdm_output_mode** preferred_mode = NULL;
bool has_output = false;
void SetUp(void)
{
if (TDMOutput::output_count > 0) {
connected_output_array = (tdm_output **) calloc(TDMOutput::output_count, sizeof(tdm_output *));
ASSERT_FALSE(NULL == connected_output_array);
- preferred_mode = (tdm_output_mode **) calloc(TDMOutput::output_count, sizeof(tdm_output_mode*));
+ preferred_mode = (const tdm_output_mode **) calloc(TDMOutput::output_count, sizeof(tdm_output_mode*));
ASSERT_FALSE(NULL == preferred_mode);
}
conn_output_count = 0;