Lines Matching refs:memory_
42 MemoryFileAtOffset memory_; member in unwindstack::MemoryFileTest
50 ASSERT_TRUE(memory_.Init(tf_->path, 0)); in TEST_F()
52 ASSERT_TRUE(memory_.ReadFully(0, buffer.data(), 10)); in TEST_F()
60 ASSERT_TRUE(memory_.Init(tf_->path, 10)); in TEST_F()
62 ASSERT_TRUE(memory_.ReadFully(0, buffer.data(), 10)); in TEST_F()
76 ASSERT_TRUE(memory_.Init(tf_->path, pagesize + 15)); in TEST_F()
78 ASSERT_TRUE(memory_.ReadFully(0, buffer.data(), 8)); in TEST_F()
92 ASSERT_TRUE(memory_.Init(tf_->path, 2 * pagesize)); in TEST_F()
94 ASSERT_TRUE(memory_.ReadFully(0, buffer.data(), 10)); in TEST_F()
113 ASSERT_TRUE(memory_.Init(tf_->path, 2 * pagesize + 10)); in TEST_F()
115 ASSERT_TRUE(memory_.ReadFully(0, buffer.data(), 10)); in TEST_F()
135 ASSERT_FALSE(memory_.Init(tf_->path, file_size + 2 * pagesize)); in TEST_F()
137 ASSERT_FALSE(memory_.Init(tf_->path, file_size)); in TEST_F()
139 ASSERT_FALSE(memory_.Init(tf_->path, 2 * pagesize + pagesize / 2 + pagesize / 4)); in TEST_F()
152 ASSERT_FALSE(memory_.ReadFully(0, buffer.data(), 10)); in TEST_F()
154 ASSERT_TRUE(memory_.Init(tf_->path, 0)); in TEST_F()
156 ASSERT_FALSE(memory_.ReadFully(10000, buffer.data(), 10)); in TEST_F()
157 ASSERT_FALSE(memory_.ReadFully(5000, buffer.data(), 10)); in TEST_F()
158 ASSERT_FALSE(memory_.ReadFully(4990, buffer.data(), 11)); in TEST_F()
159 ASSERT_TRUE(memory_.ReadFully(4990, buffer.data(), 10)); in TEST_F()
160 ASSERT_FALSE(memory_.ReadFully(4999, buffer.data(), 2)); in TEST_F()
161 ASSERT_TRUE(memory_.ReadFully(4999, buffer.data(), 1)); in TEST_F()
164 ASSERT_FALSE(memory_.ReadFully(UINT64_MAX - 100, buffer.data(), 200)); in TEST_F()
177 ASSERT_TRUE(memory_.Init(tf_->path, 0)); in TEST_F()
181 ASSERT_FALSE(memory_.ReadFully(buffer.size() + i, &value, 1)) in TEST_F()
195 ASSERT_TRUE(memory_.Init(tf_->path, pagesize, pagesize * 2)); in TEST_F()
199 ASSERT_FALSE(memory_.ReadFully(pagesize * 2, read_buffer.data(), 1)); in TEST_F()
200 ASSERT_TRUE(memory_.ReadFully(0, read_buffer.data(), pagesize * 2)); in TEST_F()
219 ASSERT_TRUE(memory_.Init(tf_->path, pagesize + 0x100, pagesize * 2)); in TEST_F()
223 ASSERT_FALSE(memory_.ReadFully(pagesize * 2, read_buffer.data(), 1)); in TEST_F()
224 ASSERT_TRUE(memory_.ReadFully(0, read_buffer.data(), pagesize * 2)); in TEST_F()
246 ASSERT_TRUE(memory_.Init(tf_->path, pagesize + 0x100, UINT64_MAX)); in TEST_F()
249 ASSERT_FALSE(memory_.ReadFully(pagesize * 9 - 0x100 + 1, read_buffer.data(), 1)); in TEST_F()
250 ASSERT_TRUE(memory_.ReadFully(0, read_buffer.data(), pagesize * 9 - 0x100)); in TEST_F()
261 ASSERT_TRUE(memory_.Init(tf_->path, 0)); in TEST_F()
263 ASSERT_TRUE(memory_.ReadFully(0, read_buffer.data(), pagesize)); in TEST_F()
269 ASSERT_TRUE(memory_.Init(tf_->path, pagesize)); in TEST_F()
270 ASSERT_TRUE(memory_.ReadFully(0, read_buffer.data(), pagesize)); in TEST_F()