Lines Matching refs:sv
32 SessionValueEntry sv; in makeSession() local
33 sv.tgid = tg; in makeSession()
34 sv.uid = tg + 1; in makeSession()
35 sv.idString = "Sess" + std::to_string(tg); in makeSession()
36 sv.isActive = true; in makeSession()
37 sv.isAppSession = false; in makeSession()
38 sv.lastUpdatedTime = std::chrono::steady_clock::now(); in makeSession()
39 sv.votes = std::make_shared<Votes>(); in makeSession()
40 return sv; in makeSession()
215 SessionValueEntry sv; in TEST() local
216 sv.isActive = true; in TEST()
217 sv.isAppSession = true; in TEST()
218 sv.lastUpdatedTime = tNow; in TEST()
219 sv.votes = std::make_shared<Votes>(); in TEST()
220 sv.votes->add(1, CpuVote(true, tNow, 400ms, 123, 1024)); in TEST()
222 EXPECT_TRUE(m.add(sessionId, sv, {10, 20, 30})); in TEST()
298 SessionValueEntry sv; in TEST() local
299 sv.isActive = true; in TEST()
300 sv.isAppSession = true; in TEST()
301 sv.lastUpdatedTime = tNow; in TEST()
302 sv.votes = std::make_shared<Votes>(); in TEST()
303 sv.votes->add(11, CpuVote(true, tNow, 400ms, 111, 1024)); in TEST()
304 EXPECT_TRUE(m.add(1001, sv, {10, 20, 30})); in TEST()
308 SessionValueEntry sv; in TEST() local
309 sv.isActive = true; in TEST()
310 sv.isAppSession = true; in TEST()
311 sv.lastUpdatedTime = tNow; in TEST()
312 sv.votes = std::make_shared<Votes>(); in TEST()
313 sv.votes->add(22, CpuVote(true, tNow, 400ms, 222, 1024)); in TEST()
314 EXPECT_TRUE(m.add(2001, sv, {10, 20, 30})); in TEST()
340 SessionValueEntry sv{.isActive = true, in TEST() local
344 EXPECT_TRUE(m.add(id, sv, {10, 20, 30})); in TEST()
373 SessionValueEntry sv{.isActive = true, in TEST() local
377 EXPECT_TRUE(m.add(id, sv, {10, 20, 30})); in TEST()