Lines Matching refs:ASSERT_TRUE
39 ASSERT_TRUE(android::base::WriteStringToFd("0123456789abcdefghijklmnopqrstuvxyz", tf_->fd)); in WriteTestData()
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()
74 ASSERT_TRUE(android::base::WriteStringToFd(large_string, tf_->fd)); 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()
90 ASSERT_TRUE(android::base::WriteStringToFd(data, tf_->fd)); 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()
111 ASSERT_TRUE(android::base::WriteStringToFd(data, tf_->fd)); 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()
132 ASSERT_TRUE(android::base::WriteStringToFd(data, tf_->fd)); in TEST_F()
147 ASSERT_TRUE(android::base::WriteStringToFd(data, tf_->fd)); in TEST_F()
154 ASSERT_TRUE(memory_.Init(tf_->path, 0)); in TEST_F()
159 ASSERT_TRUE(memory_.ReadFully(4990, buffer.data(), 10)); in TEST_F()
161 ASSERT_TRUE(memory_.ReadFully(4999, buffer.data(), 1)); in TEST_F()
170 ASSERT_TRUE(pagesize > 100); in TEST_F()
175 ASSERT_TRUE(android::base::WriteFully(tf_->fd, buffer.data(), buffer.size())); in TEST_F()
177 ASSERT_TRUE(memory_.Init(tf_->path, 0)); in TEST_F()
192 ASSERT_TRUE(android::base::WriteFully(tf_->fd, buffer.data(), buffer.size())); in TEST_F()
195 ASSERT_TRUE(memory_.Init(tf_->path, pagesize, pagesize * 2)); in TEST_F()
200 ASSERT_TRUE(memory_.ReadFully(0, read_buffer.data(), pagesize * 2)); in TEST_F()
211 ASSERT_TRUE(pagesize > 0x100); in TEST_F()
216 ASSERT_TRUE(android::base::WriteFully(tf_->fd, buffer.data(), buffer.size())); in TEST_F()
219 ASSERT_TRUE(memory_.Init(tf_->path, pagesize + 0x100, pagesize * 2)); in TEST_F()
224 ASSERT_TRUE(memory_.ReadFully(0, read_buffer.data(), pagesize * 2)); in TEST_F()
238 ASSERT_TRUE(pagesize > 0x100); in TEST_F()
243 ASSERT_TRUE(android::base::WriteFully(tf_->fd, buffer.data(), buffer.size())); in TEST_F()
246 ASSERT_TRUE(memory_.Init(tf_->path, pagesize + 0x100, UINT64_MAX)); in TEST_F()
250 ASSERT_TRUE(memory_.ReadFully(0, read_buffer.data(), pagesize * 9 - 0x100)); in TEST_F()
259 ASSERT_TRUE(android::base::WriteFully(tf_->fd, buffer.data(), buffer.size())); 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()