Lines Matching defs:area
54 MemoryArea* area = AreaFactory->produce(path, FileHandle::ReadOnly);
55 MemoryRegion* region = area->request(3, 2);
58 area->release(region);
59 AreaFactory->destruct(area);
68 MemoryArea* area = AreaFactory->produce(path, FileHandle::ReadOnly);
69 ASSERT_TRUE(area->handler()->isOpened());
70 ASSERT_TRUE(area->handler()->isGood());
71 MemoryRegion* region = area->request(3, 4);
76 area->release(region);
77 area->clear();
78 area->handler()->close();
80 area->handler()->open(path, FileHandle::ReadOnly);
81 ASSERT_TRUE(area->handler()->isOpened());
82 ASSERT_TRUE(area->handler()->isGood());
83 region = area->request(5, 2);
86 area->release(region);
87 AreaFactory->destruct(area);
96 MemoryArea* area = AreaFactory->produce(path, FileHandle::ReadOnly) ;
97 ASSERT_TRUE(area->handler()->isOpened()) ;
98 ASSERT_TRUE(area->handler()->isGood()) ;
99 MemoryRegion* region = area->request(0, 4096);
102 area->release(region);
103 AreaFactory->destruct(area);
112 MemoryArea* area = AreaFactory->produce(path, FileHandle::ReadWrite);
113 ASSERT_TRUE(area->handler()->isOpened()) ;
114 ASSERT_TRUE(area->handler()->isGood()) ;
115 MemoryRegion* region = area->request(0, 4096) ;
120 area->release(region);
121 area->clear() ;
122 area->handler()->close();
124 area->handler()->open(path, FileHandle::ReadOnly);
125 region = area->request(4000, 4);
130 area->clear() ;
131 AreaFactory->destruct(area);
140 MemoryArea* area = AreaFactory->produce(path, FileHandle::ReadWrite) ;
141 ASSERT_TRUE(area->handler()->isOpened()) ;
142 ASSERT_TRUE(area->handler()->isGood()) ;
143 MemoryRegion* region1 = area->request(0, 4096) ;
144 MemoryRegion* region2 = area->request(512, 1024) ;
149 area->release(region1);
150 area->release(region2);
151 area->clear();
152 area->handler()->close();
153 area->handler()->open(path, FileHandle::ReadWrite);
154 region1 = area->request(0, 1024) ;
159 area->release(region1);
160 area->clear();
161 AreaFactory->destruct(area);