• Home
  • Raw
  • Download

Lines Matching refs:Cache

26   InMemoryModuleCache Cache;  in TEST()  local
27 EXPECT_EQ(InMemoryModuleCache::Unknown, Cache.getPCMState("B")); in TEST()
28 EXPECT_FALSE(Cache.isPCMFinal("B")); in TEST()
29 EXPECT_FALSE(Cache.shouldBuildPCM("B")); in TEST()
32 EXPECT_DEATH(Cache.tryToDropPCM("B"), "PCM to remove is unknown"); in TEST()
33 EXPECT_DEATH(Cache.finalizePCM("B"), "PCM to finalize is unknown"); in TEST()
41 InMemoryModuleCache Cache; in TEST() local
42 EXPECT_EQ(RawB, &Cache.addPCM("B", std::move(B))); in TEST()
43 EXPECT_EQ(InMemoryModuleCache::Tentative, Cache.getPCMState("B")); in TEST()
44 EXPECT_EQ(RawB, Cache.lookupPCM("B")); in TEST()
45 EXPECT_FALSE(Cache.isPCMFinal("B")); in TEST()
46 EXPECT_FALSE(Cache.shouldBuildPCM("B")); in TEST()
49 EXPECT_DEATH(Cache.addPCM("B", getBuffer(2)), "Already has a PCM"); in TEST()
50 EXPECT_DEATH(Cache.addBuiltPCM("B", getBuffer(2)), in TEST()
59 InMemoryModuleCache Cache; in TEST() local
60 EXPECT_EQ(RawB, &Cache.addBuiltPCM("B", std::move(B))); in TEST()
61 EXPECT_EQ(InMemoryModuleCache::Final, Cache.getPCMState("B")); in TEST()
62 EXPECT_EQ(RawB, Cache.lookupPCM("B")); in TEST()
63 EXPECT_TRUE(Cache.isPCMFinal("B")); in TEST()
64 EXPECT_FALSE(Cache.shouldBuildPCM("B")); in TEST()
67 EXPECT_DEATH(Cache.addPCM("B", getBuffer(2)), "Already has a PCM"); in TEST()
68 EXPECT_DEATH(Cache.addBuiltPCM("B", getBuffer(2)), in TEST()
80 InMemoryModuleCache Cache; in TEST() local
81 EXPECT_EQ(InMemoryModuleCache::Unknown, Cache.getPCMState("B")); in TEST()
82 EXPECT_EQ(RawB1, &Cache.addPCM("B", std::move(B1))); in TEST()
83 EXPECT_FALSE(Cache.tryToDropPCM("B")); in TEST()
84 EXPECT_EQ(nullptr, Cache.lookupPCM("B")); in TEST()
85 EXPECT_EQ(InMemoryModuleCache::ToBuild, Cache.getPCMState("B")); in TEST()
86 EXPECT_FALSE(Cache.isPCMFinal("B")); in TEST()
87 EXPECT_TRUE(Cache.shouldBuildPCM("B")); in TEST()
90 EXPECT_DEATH(Cache.addPCM("B", getBuffer(2)), "Already has a PCM"); in TEST()
91 EXPECT_DEATH(Cache.tryToDropPCM("B"), in TEST()
93 EXPECT_DEATH(Cache.finalizePCM("B"), "Trying to finalize a dropped PCM"); in TEST()
97 EXPECT_EQ(RawB2, &Cache.addBuiltPCM("B", std::move(B2))); in TEST()
98 EXPECT_TRUE(Cache.isPCMFinal("B")); in TEST()
101 EXPECT_TRUE(Cache.tryToDropPCM("B")); in TEST()
102 EXPECT_EQ(RawB2, Cache.lookupPCM("B")); in TEST()
109 InMemoryModuleCache Cache; in TEST() local
110 EXPECT_EQ(InMemoryModuleCache::Unknown, Cache.getPCMState("B")); in TEST()
111 EXPECT_EQ(RawB, &Cache.addPCM("B", std::move(B))); in TEST()
114 Cache.finalizePCM("B"); in TEST()
115 EXPECT_EQ(InMemoryModuleCache::Final, Cache.getPCMState("B")); in TEST()
116 EXPECT_TRUE(Cache.isPCMFinal("B")); in TEST()