Lines Matching refs:Msf

91   auto &Msf = *ExpectedMsf;  in TEST_F()  local
93 EXPECT_THAT_EXPECTED(Msf.addStream(Blocks.size() * 4096, Blocks), in TEST_F()
97 EXPECT_FALSE(Msf.isBlockFree(B)); in TEST_F()
102 EXPECT_TRUE(Msf.isBlockFree(I)); in TEST_F()
112 auto &Msf = *ExpectedMsf; in TEST_F() local
114 auto ExpectedL1 = Msf.generateLayout(); in TEST_F()
146 auto &Msf = *ExpectedMsf; in TEST_F() local
148 EXPECT_THAT_EXPECTED(Msf.addStream(4096 * 4096 / sizeof(uint32_t)), in TEST_F()
151 auto ExpectedL1 = Msf.generateLayout(); in TEST_F()
163 auto &Msf = *ExpectedMsf; in TEST_F() local
165 EXPECT_THAT_EXPECTED(Msf.addStream(1024), Succeeded()); in TEST_F()
166 EXPECT_EQ(1024U, Msf.getStreamSize(0)); in TEST_F()
167 auto OldStreamBlocks = Msf.getStreamBlocks(0); in TEST_F()
170 EXPECT_THAT_ERROR(Msf.setStreamSize(0, 2048), Succeeded()); in TEST_F()
171 EXPECT_EQ(2048U, Msf.getStreamSize(0)); in TEST_F()
172 auto NewStreamBlocks = Msf.getStreamBlocks(0); in TEST_F()
185 auto &Msf = *ExpectedMsf; in TEST_F() local
187 EXPECT_THAT_EXPECTED(Msf.addStream(2048), Succeeded()); in TEST_F()
188 EXPECT_EQ(2048U, Msf.getStreamSize(0)); in TEST_F()
189 std::vector<uint32_t> OldStreamBlocks = Msf.getStreamBlocks(0); in TEST_F()
192 EXPECT_THAT_ERROR(Msf.setStreamSize(0, 6144), Succeeded()); in TEST_F()
193 EXPECT_EQ(6144U, Msf.getStreamSize(0)); in TEST_F()
194 std::vector<uint32_t> NewStreamBlocks = Msf.getStreamBlocks(0); in TEST_F()
206 auto &Msf = *ExpectedMsf; in TEST_F() local
208 EXPECT_THAT_EXPECTED(Msf.addStream(2048), Succeeded()); in TEST_F()
209 EXPECT_EQ(2048U, Msf.getStreamSize(0)); in TEST_F()
210 std::vector<uint32_t> OldStreamBlocks = Msf.getStreamBlocks(0); in TEST_F()
213 EXPECT_THAT_ERROR(Msf.setStreamSize(0, 1024), Succeeded()); in TEST_F()
214 EXPECT_EQ(1024U, Msf.getStreamSize(0)); in TEST_F()
215 std::vector<uint32_t> NewStreamBlocks = Msf.getStreamBlocks(0); in TEST_F()
227 auto &Msf = *ExpectedMsf; in TEST_F() local
229 EXPECT_THAT_EXPECTED(Msf.addStream(6144), Succeeded()); in TEST_F()
230 EXPECT_EQ(6144U, Msf.getStreamSize(0)); in TEST_F()
231 std::vector<uint32_t> OldStreamBlocks = Msf.getStreamBlocks(0); in TEST_F()
234 EXPECT_THAT_ERROR(Msf.setStreamSize(0, 2048), Succeeded()); in TEST_F()
235 EXPECT_EQ(2048U, Msf.getStreamSize(0)); in TEST_F()
236 std::vector<uint32_t> NewStreamBlocks = Msf.getStreamBlocks(0); in TEST_F()
247 auto &Msf = *ExpectedMsf; in TEST_F() local
249 EXPECT_THAT_EXPECTED(Msf.addStream(6144), Succeeded()); in TEST_F()
252 EXPECT_THAT_EXPECTED(Msf.addStream(6144, Blocks), Failed()); in TEST_F()
260 auto &Msf = *ExpectedMsf; in TEST_F() local
263 uint32_t NumUsedBlocks = Msf.getNumUsedBlocks(); in TEST_F()
265 EXPECT_EQ(0U, Msf.getNumFreeBlocks()); in TEST_F()
269 EXPECT_THAT_EXPECTED(Msf.addStream(StreamSizes[I]), Succeeded()); in TEST_F()
271 EXPECT_EQ(NumUsedBlocks, Msf.getNumUsedBlocks()); in TEST_F()
272 EXPECT_EQ(0U, Msf.getNumFreeBlocks()); in TEST_F()
281 auto &Msf = *ExpectedMsf; in TEST_F() local
286 EXPECT_THAT_EXPECTED(Msf.addStream(StreamSizes[I]), Succeeded()); in TEST_F()
291 auto ExpectedLayout = Msf.generateLayout(); in TEST_F()
312 auto &Msf = *ExpectedMsf; in TEST_F() local
315 EXPECT_THAT_ERROR(Msf.setDirectoryBlocksHint({B + 1}), Succeeded()); in TEST_F()
316 EXPECT_THAT_EXPECTED(Msf.addStream(2048, {B + 2}), Succeeded()); in TEST_F()
318 auto ExpectedLayout = Msf.generateLayout(); in TEST_F()
333 auto &Msf = *ExpectedMsf; in TEST_F() local
335 EXPECT_THAT_ERROR(Msf.setDirectoryBlocksHint({B + 1}), Succeeded()); in TEST_F()
338 EXPECT_THAT_EXPECTED(Msf.addStream(Size), Succeeded()); in TEST_F()
340 auto ExpectedLayout = Msf.generateLayout(); in TEST_F()
351 auto &Msf = *ExpectedMsf; in TEST_F() local
354 EXPECT_THAT_ERROR(Msf.setDirectoryBlocksHint({B + 1, B + 2}), Succeeded()); in TEST_F()
356 ASSERT_THAT_EXPECTED(Msf.addStream(2048), Succeeded()); in TEST_F()
358 auto ExpectedLayout = Msf.generateLayout(); in TEST_F()
368 auto &Msf = *ExpectedMsf; in TEST_F() local
375 Expected<uint32_t> SN = Msf.addStream(StreamSize); in TEST_F()
378 auto ExpectedLayout = Msf.generateLayout(); in TEST_F()