Lines Matching refs:i
70 for (size_t i = 0; i < pagesize; i++) { in TEST_F() local
86 for (size_t i = 0; i < 2 * pagesize; i++) { in TEST_F() local
87 data += static_cast<char>((i / pagesize) + '0'); in TEST_F()
88 data += static_cast<char>((i % 10) + '0'); in TEST_F()
97 for (size_t i = 0; i < 5; i++) { in TEST_F() local
99 expected_str += static_cast<char>(((i + pagesize) % 10) + '0'); in TEST_F()
107 for (size_t i = 0; i < 2 * pagesize; i++) { in TEST_F() local
108 data += static_cast<char>((i / pagesize) + '0'); in TEST_F()
109 data += static_cast<char>((i % 10) + '0'); in TEST_F()
118 for (size_t i = 0; i < 5; i++) { in TEST_F() local
120 expected_str += static_cast<char>(((i + pagesize + 5) % 10) + '0'); in TEST_F()
129 for (size_t i = 0; i < file_size; i++) { in TEST_F() local
130 data += static_cast<char>((i / pagesize) + '0'); in TEST_F()
144 for (size_t i = 0; i < 5000; i++) { in TEST_F() local
145 data += static_cast<char>((i % 10) + '0'); in TEST_F()
172 for (size_t i = 0; i < pagesize - 100; i++) { in TEST_F() local
173 buffer[i] = static_cast<uint8_t>((i % 0x5e) + 0x20); in TEST_F()
179 for (size_t i = 0; i < 100; i++) { in TEST_F() local
181 ASSERT_FALSE(memory_.ReadFully(buffer.size() + i, &value, 1)) in TEST_F()
182 << "Should have failed at value " << i; in TEST_F()
189 for (size_t i = 0; i < pagesize * 10; i++) { in TEST_F() local
190 buffer[i] = i / pagesize + 1; in TEST_F()
201 for (size_t i = 0; i < pagesize; i++) { in TEST_F() local
202 ASSERT_EQ(2, read_buffer[i]) << "Failed at byte " << i; in TEST_F()
204 for (size_t i = pagesize; i < pagesize * 2; i++) { in TEST_F() local
205 ASSERT_EQ(3, read_buffer[i]) << "Failed at byte " << i; in TEST_F()
213 for (size_t i = 0; i < buffer.size(); i++) { in TEST_F() local
214 buffer[i] = i / pagesize + 1; in TEST_F()
225 for (size_t i = 0; i < pagesize - 0x100; i++) { in TEST_F() local
226 ASSERT_EQ(2, read_buffer[i]) << "Failed at byte " << i; in TEST_F()
228 for (size_t i = pagesize - 0x100; i < 2 * pagesize - 0x100; i++) { in TEST_F() local
229 ASSERT_EQ(3, read_buffer[i]) << "Failed at byte " << i; in TEST_F()
231 for (size_t i = 2 * pagesize - 0x100; i < pagesize * 2; i++) { in TEST_F() local
232 ASSERT_EQ(4, read_buffer[i]) << "Failed at byte " << i; in TEST_F()
240 for (size_t i = 0; i < buffer.size(); i++) { in TEST_F() local
241 buffer[i] = i / pagesize + 1; in TEST_F()
256 for (size_t i = 0; i < buffer.size(); i++) { in TEST_F() local
257 buffer[i] = i / pagesize + 1; in TEST_F()
264 for (size_t i = 0; i < pagesize; i++) { in TEST_F() local
265 ASSERT_EQ(1, read_buffer[i]) << "Failed at byte " << i; in TEST_F()
271 for (size_t i = 0; i < pagesize; i++) { in TEST_F() local
272 ASSERT_EQ(2, read_buffer[i]) << "Failed at byte " << i; in TEST_F()