Lines Matching refs:cache
61 RecordCache cache(event_attr, 2, 2); in TEST_F() local
75 cache.Push(buf1.data(), buf1.size()); in TEST_F()
76 ASSERT_EQ(nullptr, cache.Pop()); in TEST_F()
78 cache.Push(buf2.data(), buf2.size()); in TEST_F()
80 std::unique_ptr<Record> popped_r = cache.Pop(); in TEST_F()
83 ASSERT_EQ(nullptr, cache.Pop()); in TEST_F()
85 cache.Push(buf3.data(), buf3.size()); in TEST_F()
86 ASSERT_EQ(nullptr, cache.Pop()); in TEST_F()
88 cache.Push(buf4.data(), buf4.size()); in TEST_F()
90 popped_r = cache.Pop(); in TEST_F()
94 popped_r = cache.Pop(); in TEST_F()
97 ASSERT_EQ(nullptr, cache.Pop()); in TEST_F()
99 std::vector<std::unique_ptr<Record>> last_records = cache.PopAll(); in TEST_F()
107 RecordCache cache(event_attr, 2, 2); in TEST_F() local
113 cache.Push(buf.data(), buf.size()); in TEST_F()
115 std::vector<std::unique_ptr<Record>> out_records = cache.PopAll(); in TEST_F()