Lines Matching refs:eventManager
87 event_manager eventManager; member in TestEventManager
90 : eventManager(eventsDir, 0, 0) in TestEventManager()
97 return eventManager.create(&rec); in prepareEventLog1()
102 return eventManager.create(&rec); in prepareEventLog2()
111 EXPECT_EQ(0, eventManager.get_managed_size()); in TEST_F()
112 EXPECT_EQ(0, eventManager.next_log()); in TEST_F()
113 eventManager.next_log_refresh(); in TEST_F()
114 EXPECT_EQ(0, eventManager.next_log()); in TEST_F()
115 EXPECT_EQ(0, eventManager.latest_log_id()); in TEST_F()
116 EXPECT_EQ(0, eventManager.log_count()); in TEST_F()
122 EXPECT_EQ(75, eventManager.get_managed_size()); in TEST_F()
123 EXPECT_EQ(1, eventManager.log_count()); in TEST_F()
124 EXPECT_EQ(1, eventManager.latest_log_id()); in TEST_F()
125 eventManager.next_log_refresh(); in TEST_F()
128 EXPECT_NE(0, eventManager.next_log()); in TEST_F()
129 eventManager.next_log_refresh(); in TEST_F()
137 EXPECT_EQ(150, eventManager.get_managed_size()); in TEST_F()
138 EXPECT_EQ(2, eventManager.log_count()); in TEST_F()
139 EXPECT_EQ(2, eventManager.latest_log_id()); in TEST_F()
140 eventManager.next_log_refresh(); in TEST_F()
143 EXPECT_NE(0, eventManager.next_log()); in TEST_F()
144 EXPECT_NE(0, eventManager.next_log()); in TEST_F()
155 EXPECT_EQ(1, eventManager.open(1, &prec)); in TEST_F()
157 eventManager.close(prec); in TEST_F()
159 EXPECT_EQ(2, eventManager.open(2, &prec)); in TEST_F()
161 eventManager.close(prec); in TEST_F()
171 EXPECT_EQ(0, eventManager.remove(1)); in TEST_F()
172 EXPECT_EQ(75, eventManager.get_managed_size()); in TEST_F()
177 eventManager.next_log_refresh(); in TEST_F()