Lines Matching refs:ASSERT_EQ
38 ASSERT_EQ(cache.Stat().max_node_count, 2u); in TEST()
44 ASSERT_EQ(cache.Stat().used_node_count, 2u); in TEST()
45 ASSERT_EQ(cache.Stat().recycled_node_count, 0u); in TEST()
52 ASSERT_EQ(cache.Stat().used_node_count, 2u); in TEST()
53 ASSERT_EQ(cache.Stat().recycled_node_count, 1u); in TEST()
54 ASSERT_EQ(cache.FindNode(0, ip[0], sp[0]), nullptr); in TEST()
61 ASSERT_EQ(cache.Stat().used_node_count, 2u); in TEST()
62 ASSERT_EQ(cache.Stat().recycled_node_count, 2u); in TEST()
63 ASSERT_EQ(cache.FindNode(1, ip[0], sp[0]), nullptr); in TEST()
75 ASSERT_EQ(cache1.Stat().used_node_count, 3u); in TEST()
83 ASSERT_EQ(cache2.Stat().used_node_count, 3u); in TEST()
93 ASSERT_EQ(cache3.Stat().used_node_count, 4u); in TEST()
103 ASSERT_EQ(cache.Stat().used_node_count, 2u); in TEST()
104 ASSERT_EQ(cache.Stat().recycled_node_count, 0u); in TEST()
109 ASSERT_EQ(cache.Stat().max_node_count, 4u); in TEST()
124 ASSERT_EQ(cache.Stat().used_node_count, 4u); in TEST()
125 ASSERT_EQ(cache.Stat().recycled_node_count, 0u); in TEST()
142 ASSERT_EQ(cache.Stat().used_node_count, 12u); in TEST()
143 ASSERT_EQ(cache.Stat().recycled_node_count, 0u); in TEST()
147 ASSERT_EQ(cache.Stat().used_node_count, 12u); in TEST()
148 ASSERT_EQ(cache.Stat().recycled_node_count, 1u); in TEST()
149 ASSERT_EQ(cache.FindNode(0, 0xa, 0xa), nullptr); in TEST()
185 ASSERT_EQ(pid, expected_pid); in TEST_F()
186 ASSERT_EQ(tid, expected_pid); in TEST_F()
188 ASSERT_EQ(type, CallChainJoiner::ORIGINAL_OFFLINE); in TEST_F()
189 ASSERT_EQ(ips, std::vector<uint64_t>({1, 2, 3})); in TEST_F()
190 ASSERT_EQ(sps, std::vector<uint64_t>({1, 2, 3})); in TEST_F()
192 ASSERT_EQ(type, CallChainJoiner::JOINED_OFFLINE); in TEST_F()
193 ASSERT_EQ(ips, std::vector<uint64_t>({1, 2, 3, 4, 5})); in TEST_F()
194 ASSERT_EQ(sps, std::vector<uint64_t>({1, 2, 3, 4, 5})); in TEST_F()
199 ASSERT_EQ(pid, expected_pid); in TEST_F()
200 ASSERT_EQ(tid, expected_pid); in TEST_F()
201 ASSERT_EQ(type, i == 0u ? CallChainJoiner::ORIGINAL_REMOTE : CallChainJoiner::JOINED_REMOTE); in TEST_F()
202 ASSERT_EQ(ips, std::vector<uint64_t>({3, 4, 5})); in TEST_F()
203 ASSERT_EQ(sps, std::vector<uint64_t>({3, 4, 5})); in TEST_F()
207 ASSERT_EQ(pid, expected_pid); in TEST_F()
208 ASSERT_EQ(tid, expected_pid); in TEST_F()
210 ASSERT_EQ(type, CallChainJoiner::ORIGINAL_OFFLINE); in TEST_F()
211 ASSERT_EQ(ips, std::vector<uint64_t>({1, 4})); in TEST_F()
212 ASSERT_EQ(sps, std::vector<uint64_t>({1, 4})); in TEST_F()
214 ASSERT_EQ(type, CallChainJoiner::JOINED_OFFLINE); in TEST_F()
215 ASSERT_EQ(ips, std::vector<uint64_t>({1, 4, 5})); in TEST_F()
216 ASSERT_EQ(sps, std::vector<uint64_t>({1, 4, 5})); in TEST_F()
222 ASSERT_EQ(joiner.GetCacheStat().cache_size, sizeof(CacheNode) * 1024); in TEST_F()
223 ASSERT_EQ(joiner.GetCacheStat().matched_node_count_to_extend_callchain, 1u); in TEST_F()
224 ASSERT_EQ(joiner.GetCacheStat().max_node_count, 1024u); in TEST_F()
225 ASSERT_EQ(joiner.GetCacheStat().used_node_count, 50u); in TEST_F()
226 ASSERT_EQ(joiner.GetCacheStat().recycled_node_count, 0u); in TEST_F()
227 ASSERT_EQ(joiner.GetStat().chain_count, 30u); in TEST_F()
228 ASSERT_EQ(joiner.GetStat().before_join_node_count, 80u); in TEST_F()
229 ASSERT_EQ(joiner.GetStat().after_join_node_count, 110u); in TEST_F()
230 ASSERT_EQ(joiner.GetStat().after_join_max_chain_length, 5u); in TEST_F()
243 ASSERT_EQ(pid, 0); in TEST_F()
244 ASSERT_EQ(tid, 0); in TEST_F()
245 ASSERT_EQ(type, CallChainJoiner::JOINED_OFFLINE); in TEST_F()
246 ASSERT_EQ(ips, std::vector<uint64_t>({1})); in TEST_F()
247 ASSERT_EQ(sps, std::vector<uint64_t>({1})); in TEST_F()