Lines Matching refs:ASSERT_EQ
39 ASSERT_EQ(cache.Stat().max_node_count, 2u); in TEST()
45 ASSERT_EQ(cache.Stat().used_node_count, 2u); in TEST()
46 ASSERT_EQ(cache.Stat().recycled_node_count, 0u); in TEST()
53 ASSERT_EQ(cache.Stat().used_node_count, 2u); in TEST()
54 ASSERT_EQ(cache.Stat().recycled_node_count, 1u); in TEST()
55 ASSERT_EQ(cache.FindNode(0, ip[0], sp[0]), nullptr); in TEST()
62 ASSERT_EQ(cache.Stat().used_node_count, 2u); in TEST()
63 ASSERT_EQ(cache.Stat().recycled_node_count, 2u); in TEST()
64 ASSERT_EQ(cache.FindNode(1, ip[0], sp[0]), nullptr); in TEST()
77 ASSERT_EQ(cache1.Stat().used_node_count, 3u); in TEST()
85 ASSERT_EQ(cache2.Stat().used_node_count, 3u); in TEST()
95 ASSERT_EQ(cache3.Stat().used_node_count, 4u); in TEST()
106 ASSERT_EQ(cache.Stat().used_node_count, 2u); in TEST()
107 ASSERT_EQ(cache.Stat().recycled_node_count, 0u); in TEST()
113 ASSERT_EQ(cache.Stat().max_node_count, 4u); in TEST()
128 ASSERT_EQ(cache.Stat().used_node_count, 4u); in TEST()
129 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, 0u); in TEST()
152 ASSERT_EQ(cache.Stat().used_node_count, 12u); in TEST()
153 ASSERT_EQ(cache.Stat().recycled_node_count, 1u); in TEST()
154 ASSERT_EQ(cache.FindNode(0, 0xa, 0xa), nullptr); in TEST()
192 ASSERT_EQ(pid, expected_pid); in TEST_F()
193 ASSERT_EQ(tid, expected_pid); in TEST_F()
195 ASSERT_EQ(type, CallChainJoiner::ORIGINAL_OFFLINE); in TEST_F()
196 ASSERT_EQ(ips, std::vector<uint64_t>({1, 2, 3})); in TEST_F()
197 ASSERT_EQ(sps, std::vector<uint64_t>({1, 2, 3})); in TEST_F()
199 ASSERT_EQ(type, CallChainJoiner::JOINED_OFFLINE); in TEST_F()
200 ASSERT_EQ(ips, std::vector<uint64_t>({1, 2, 3, 4, 5})); in TEST_F()
201 ASSERT_EQ(sps, std::vector<uint64_t>({1, 2, 3, 4, 5})); in TEST_F()
206 ASSERT_EQ(pid, expected_pid); in TEST_F()
207 ASSERT_EQ(tid, expected_pid); in TEST_F()
208 ASSERT_EQ(type, i == 0u ? CallChainJoiner::ORIGINAL_REMOTE : CallChainJoiner::JOINED_REMOTE); in TEST_F()
209 ASSERT_EQ(ips, std::vector<uint64_t>({3, 4, 5})); in TEST_F()
210 ASSERT_EQ(sps, std::vector<uint64_t>({3, 4, 5})); in TEST_F()
214 ASSERT_EQ(pid, expected_pid); in TEST_F()
215 ASSERT_EQ(tid, expected_pid); in TEST_F()
217 ASSERT_EQ(type, CallChainJoiner::ORIGINAL_OFFLINE); in TEST_F()
218 ASSERT_EQ(ips, std::vector<uint64_t>({1, 4})); in TEST_F()
219 ASSERT_EQ(sps, std::vector<uint64_t>({1, 4})); in TEST_F()
221 ASSERT_EQ(type, CallChainJoiner::JOINED_OFFLINE); in TEST_F()
222 ASSERT_EQ(ips, std::vector<uint64_t>({1, 4, 5})); in TEST_F()
223 ASSERT_EQ(sps, std::vector<uint64_t>({1, 4, 5})); in TEST_F()
229 ASSERT_EQ(joiner.GetCacheStat().cache_size, sizeof(CacheNode) * 1024); in TEST_F()
230 ASSERT_EQ(joiner.GetCacheStat().matched_node_count_to_extend_callchain, 1u); in TEST_F()
231 ASSERT_EQ(joiner.GetCacheStat().max_node_count, 1024u); in TEST_F()
232 ASSERT_EQ(joiner.GetCacheStat().used_node_count, 50u); in TEST_F()
233 ASSERT_EQ(joiner.GetCacheStat().recycled_node_count, 0u); in TEST_F()
234 ASSERT_EQ(joiner.GetStat().chain_count, 30u); in TEST_F()
235 ASSERT_EQ(joiner.GetStat().before_join_node_count, 80u); in TEST_F()
236 ASSERT_EQ(joiner.GetStat().after_join_node_count, 110u); in TEST_F()
237 ASSERT_EQ(joiner.GetStat().after_join_max_chain_length, 5u); in TEST_F()
251 ASSERT_EQ(pid, 0); in TEST_F()
252 ASSERT_EQ(tid, 0); in TEST_F()
253 ASSERT_EQ(type, CallChainJoiner::JOINED_OFFLINE); in TEST_F()
254 ASSERT_EQ(ips, std::vector<uint64_t>({1})); in TEST_F()
255 ASSERT_EQ(sps, std::vector<uint64_t>({1})); in TEST_F()