• Home
  • Raw
  • Download

Lines Matching refs:SRM

118   SimpleResourceManager<> SRM(ES);  in TEST_F()  local
119 SRM.setHandleRemove([&](ResourceKey K) -> Error { in TEST_F()
121 EXPECT_EQ(SRM.getRecordedResources().size(), 0U) in TEST_F()
123 SRM.removeResource(K); in TEST_F()
155 SimpleResourceManager<> SRM(ES); in TEST_F() local
156 SRM.setHandleRemove([&](ResourceKey K) -> Error { in TEST_F()
158 EXPECT_EQ(SRM.getRecordedResources().size(), 1U) in TEST_F()
160 EXPECT_EQ(SRM.getRecordedResources().count(K), 1U) in TEST_F()
162 SRM.removeResource(K); in TEST_F()
170 [&](ResourceKey K) { SRM.recordResource(K); })); in TEST_F()
193 SimpleResourceManager<> SRM(ES); in TEST_F() local
194 SRM.setHandleRemove([&](ResourceKey K) -> Error { in TEST_F()
196 EXPECT_EQ(SRM.getRecordedResources().size(), 0U) in TEST_F()
198 SRM.removeResource(K); in TEST_F()
245 SimpleResourceManager<> SRM(ES); in TEST_F() local
252 [&](ResourceKey K) { ++SRM.getRecordedResources()[K]; })); in TEST_F()
262 [&](ResourceKey K) { ++SRM.getRecordedResources()[K]; })); in TEST_F()
267 EXPECT_TRUE(SRM.getRecordedResources().empty()) in TEST_F()
274 EXPECT_EQ(SRM.getRecordedResources().size(), 1U) in TEST_F()
276 EXPECT_EQ(SRM.getRecordedResources().count(JDResourceKey), 1U) in TEST_F()
278 EXPECT_EQ(SRM.getRecordedResources()[JDResourceKey], 2U) in TEST_F()
284 EXPECT_TRUE(SRM.getRecordedResources().empty()) in TEST_F()
292 SimpleResourceManager<> SRM(ES); in TEST_F() local
293 SRM.setHandleTransfer([&](ResourceKey DstKey, ResourceKey SrcKey) { in TEST_F()
295 auto &RR = SRM.getRecordedResources(); in TEST_F()
302 [=, &SRM](std::unique_ptr<MaterializationResponsibility> R) { in TEST_F()
304 [&](ResourceKey K) { SRM.recordResource(K); })); in TEST_F()
325 EXPECT_EQ(SRM.getRecordedResources().size(), 1U) in TEST_F()
327 EXPECT_EQ(SRM.getRecordedResources().count(FooRT->getKeyUnsafe()), 1U) in TEST_F()
329 EXPECT_EQ(SRM.getRecordedResources().count(BarRT->getKeyUnsafe()), 0U) in TEST_F()
342 SimpleResourceManager<> SRM(ES); in TEST_F() local
343 SRM.setHandleTransfer([&](ResourceKey DstKey, ResourceKey SrcKey) { in TEST_F()
345 SRM.transferResources(DstKey, SrcKey); in TEST_F()
351 [=, &SRM](std::unique_ptr<MaterializationResponsibility> R) { in TEST_F()
353 [&](ResourceKey K) { SRM.recordResource(K, 1); })); in TEST_F()
365 EXPECT_EQ(SRM.getRecordedResources().size(), 0U) in TEST_F()
371 EXPECT_EQ(SRM.getRecordedResources().size(), 2U) in TEST_F()
380 EXPECT_EQ(SRM.getRecordedResources().size(), 1U) in TEST_F()
382 EXPECT_EQ(SRM.getRecordedResources().count(FooRT->getKeyUnsafe()), 1U) in TEST_F()
384 EXPECT_EQ(SRM.getRecordedResources()[FooRT->getKeyUnsafe()], 2U) in TEST_F()
392 SimpleResourceManager<> SRM(ES); in TEST_F() local
393 SRM.setHandleTransfer([&](ResourceKey DstKey, ResourceKey SrcKey) { in TEST_F()
395 SRM.transferResources(DstKey, SrcKey); in TEST_F()
418 SRM.recordResource(K, 1); in TEST_F()
421 EXPECT_EQ(SRM.getRecordedResources().size(), 1U) in TEST_F()
423 EXPECT_EQ(SRM.getRecordedResources()[FooRT->getKeyUnsafe()], 1U) in TEST_F()
434 SRM.recordResource(K, 1); in TEST_F()
437 EXPECT_EQ(SRM.getRecordedResources().size(), 1U) in TEST_F()
439 EXPECT_EQ(SRM.getRecordedResources().count(BarRT->getKeyUnsafe()), 1U) in TEST_F()
441 EXPECT_EQ(SRM.getRecordedResources()[BarRT->getKeyUnsafe()], 2U) in TEST_F()