• Home
  • Raw
  • Download

Lines Matching refs:memory

32   MemoryFakeAlwaysReadZero memory;  in TEST()  local
35 ASSERT_TRUE(memory.Read32(0, &data)); in TEST()
40 MemoryFakeAlwaysReadZero memory; in TEST() local
43 ASSERT_TRUE(memory.Read64(0, &data)); in TEST()
57 MemoryFake memory; in TEST() local
59 memory.SetMemory(100, name.c_str(), name.size() + 1); in TEST()
62 ASSERT_TRUE(memory.ReadString(100, &dst_name, 100)); in TEST()
65 ASSERT_TRUE(memory.ReadString(107, &dst_name, 100)); in TEST()
69 ASSERT_TRUE(memory.ReadString(107, &dst_name, 10)); in TEST()
72 ASSERT_FALSE(memory.ReadString(107, &dst_name, 9)); in TEST()
78 MemoryFake memory; in TEST() local
81 memory.SetMemory(0, name.c_str(), name.size()); in TEST()
85 ASSERT_FALSE(memory.ReadString(100, &dst_name, 100)); in TEST()
88 ASSERT_FALSE(memory.ReadString(0, &dst_name, 100)); in TEST()
91 memory.SetData8(name.size(), '\0'); in TEST()
92 ASSERT_TRUE(memory.ReadString(0, &dst_name, 100)); in TEST()
111 MemoryFake memory; in TEST() local
113 memory.SetMemory(100, kLongString, sizeof(kLongString)); in TEST()
116 ASSERT_TRUE(memory.ReadString(100, &dst_name, sizeof(kLongString))); in TEST()
120 memory.SetMemory(100, expected_str.data(), expected_str.length() + 1); in TEST()
121 ASSERT_TRUE(memory.ReadString(100, &dst_name, 256)); in TEST()
123 ASSERT_FALSE(memory.ReadString(100, &dst_name, 255)); in TEST()
126 memory.SetMemory(100, expected_str.data(), expected_str.length() + 1); in TEST()
127 ASSERT_TRUE(memory.ReadString(100, &dst_name, 257)); in TEST()
129 ASSERT_FALSE(memory.ReadString(100, &dst_name, 256)); in TEST()
132 memory.SetMemory(100, expected_str.data(), expected_str.length() + 1); in TEST()
133 ASSERT_TRUE(memory.ReadString(100, &dst_name, 300)); in TEST()