int r = shec->init(*parameters);
//check parameters
- EXPECT_EQ(6u, shec->k);
- EXPECT_EQ(4u, shec->m);
- EXPECT_EQ(3u, shec->c);
- EXPECT_EQ(8u, shec->w);
+ EXPECT_EQ(6, shec->k);
+ EXPECT_EQ(4, shec->m);
+ EXPECT_EQ(3, shec->c);
+ EXPECT_EQ(8, shec->w);
EXPECT_EQ(ErasureCodeShec::MULTIPLE, shec->technique);
EXPECT_STREQ("default", shec->ruleset_root.c_str());
EXPECT_STREQ("osd", shec->ruleset_failure_domain.c_str());
int r = shec->minimum_to_decode(want_to_decode, available_chunks,
&minimum_chunks);
EXPECT_EQ(-EINVAL, r);
- EXPECT_EQ(0, minimum_chunks.size());
+ EXPECT_EQ(0u, minimum_chunks.size());
delete shec;
delete parameters;
result = shec->encode(want_to_encode, in, &encoded);
EXPECT_EQ(0, result);
- EXPECT_EQ(i_k+i_m, encoded.size());
+ EXPECT_EQ(i_k+i_m, (int)encoded.size());
EXPECT_EQ(c_size, encoded[0].length());
//decode
EXPECT_STREQ("myrule", crush->rule_name_map[0].c_str());
//get_chunk_count
- EXPECT_EQ(i_k+i_m, shec->get_chunk_count());
+ EXPECT_EQ(i_k+i_m, (int)shec->get_chunk_count());
//get_data_chunk_count
- EXPECT_EQ(i_k, shec->get_data_chunk_count());
+ EXPECT_EQ(i_k, (int)shec->get_data_chunk_count());
//get_chunk_size
EXPECT_EQ(c_size, shec->get_chunk_size(192));