8 #include <gtest/gtest.h>
9 #include <gmock/gmock.h>
14 using namespace HCE::sphinx;
15 using namespace HCE::sphinx::reduce_task;
18 using ::testing::ContainerEq;
37 expectedWeightKeys.push_back(make_pair(
toHexString(111LLU), 7LLU));
38 expectedWeightKeys.push_back(make_pair(
toHexString(222LLU), 9LLU));
39 expectedWeightKeys.push_back(make_pair(
toHexString(99LLU), 17LLU));
40 expectedWeightKeys.push_back(make_pair(
toHexString(444LLU), 9LLU));
51 sphinxRequestInfo.
setTotal(totalRes);
58 sphinxResultData->addMatchInfo(matchInfo1);
59 sphinxResultData->addMatchInfo(matchInfo2);
60 sphinxResultData->addMatchInfo(matchInfo3);
61 sphinxResultData->addMatchInfo(matchInfo4);
62 sphinxResultData->addRequestInfo(sphinxRequestInfo);
85 vector<pair<string, unsigned long long> > weightKeys;
89 ASSERT_EQ(weightKeys.size(), 0U);
97 vector<pair<string, unsigned long long> > weightKeys;
101 ASSERT_EQ(expectedWeightKeys, weightKeys);