Lines Matching refs:sectors_
27 sectors_(sector_descriptors_, partition_, nullptr) { in SectorsTest()
28 EXPECT_EQ(0u, sectors_.size()); in SectorsTest()
29 sectors_.Reset(); in SectorsTest()
35 Sectors sectors_; member in pw::kvs::internal::__anonddb40b0b0111::SectorsTest
40 EXPECT_EQ(partition_.sector_count(), sectors_.size()); in TEST_F()
41 EXPECT_EQ(32u, sectors_.max_size()); in TEST_F()
42 EXPECT_EQ(sectors_.begin(), sectors_.last_new()); in TEST_F()
46 sectors_.set_last_new_sector(130); in TEST_F()
47 EXPECT_EQ(128u, sectors_.BaseAddress(*sectors_.last_new())); in TEST_F()
51 SectorDescriptor& sector = sectors_.FromAddress(128); in TEST_F()
53 EXPECT_FALSE(sectors_.AddressInSector(sector, 127)); in TEST_F()
55 EXPECT_TRUE(sectors_.AddressInSector(sector, address)); in TEST_F()
57 EXPECT_FALSE(sectors_.AddressInSector(sector, 256)); in TEST_F()
58 EXPECT_FALSE(sectors_.AddressInSector(sector, 1025)); in TEST_F()
63 EXPECT_EQ(0u, sectors_.BaseAddress(sectors_.FromAddress(address))); in TEST_F()
66 EXPECT_EQ(128u, sectors_.BaseAddress(sectors_.FromAddress(address))); in TEST_F()
69 EXPECT_EQ(256u, sectors_.BaseAddress(sectors_.FromAddress(address))); in TEST_F()
74 EXPECT_EQ(0u, sectors_.NextWritableAddress(*sectors_.begin())); in TEST_F()
78 sectors_.begin()->RemoveWritableBytes(123); in TEST_F()
79 EXPECT_EQ(123u, sectors_.NextWritableAddress(*sectors_.begin())); in TEST_F()