Lines Matching refs:map

37   TestMap map;  in TEST()  local
39 const TestMap::Entry* entry = TestMap::Iterator(map).Next(); in TEST()
43 map.SetKeyValue("key1", "value1"); in TEST()
44 entry = TestMap::Iterator(map).Next(); in TEST()
50 map.SetKeyValue("key1", "value3"); in TEST()
57 map.RemoveKey("key1"); in TEST()
93 NonAllocatingMap<10, 10, 10> map; in TEST() local
94 map.SetKeyValue("one", "a"); in TEST()
95 map.SetKeyValue("two", "b"); in TEST()
96 map.SetKeyValue("three", "c"); in TEST()
97 map.RemoveKey("two"); in TEST()
98 EXPECT_EQ(2u, map.GetCount()); in TEST()
101 NonAllocatingMap<10, 10, 10> map_copy(map); in TEST()
107 EXPECT_FALSE(map.GetValueForKey("four")); in TEST()
111 map_assign = map; in TEST()
117 EXPECT_FALSE(map.GetValueForKey("four")); in TEST()
119 map.RemoveKey("one"); in TEST()
120 EXPECT_FALSE(map.GetValueForKey("one")); in TEST()
229 NonAllocatingMap<5, 7, 6> map; in TEST() local
230 map.SetKeyValue("rob", "ert"); in TEST()
231 map.SetKeyValue("mike", "pink"); in TEST()
232 map.SetKeyValue("mark", "allays"); in TEST()
234 EXPECT_EQ(3u, map.GetCount()); in TEST()
235 EXPECT_STREQ("ert", map.GetValueForKey("rob")); in TEST()
236 EXPECT_STREQ("pink", map.GetValueForKey("mike")); in TEST()
237 EXPECT_STREQ("allays", map.GetValueForKey("mark")); in TEST()
239 map.RemoveKey("mike"); in TEST()
241 EXPECT_EQ(2u, map.GetCount()); in TEST()
242 EXPECT_FALSE(map.GetValueForKey("mike")); in TEST()
244 map.SetKeyValue("mark", "mal"); in TEST()
245 EXPECT_EQ(2u, map.GetCount()); in TEST()
246 EXPECT_STREQ("mal", map.GetValueForKey("mark")); in TEST()
248 map.RemoveKey("mark"); in TEST()
249 EXPECT_EQ(1u, map.GetCount()); in TEST()
250 EXPECT_FALSE(map.GetValueForKey("mark")); in TEST()
255 TestMap map; in TEST() local
256 map.SetKeyValue("one", "abc"); in TEST()
257 map.SetKeyValue("two", "def"); in TEST()
258 map.SetKeyValue("tre", "hig"); in TEST()
260 EXPECT_STREQ("abc", map.GetValueForKey("one")); in TEST()
261 EXPECT_STREQ("def", map.GetValueForKey("two")); in TEST()
262 EXPECT_STREQ("hig", map.GetValueForKey("tre")); in TEST()
265 size_t size = map.Serialize(&serialized); in TEST()
283 NonAllocatingMap<3, 2, 2> map; in TEST() local
284 map.SetKeyValue("a", "1"); in TEST()
285 map.SetKeyValue("b", "2"); in TEST()
286 map.SetKeyValue("c", "3"); in TEST()
287 EXPECT_EQ(2u, map.GetCount()); in TEST()
288 EXPECT_FALSE(map.GetValueForKey("c")); in TEST()
294 NonAllocatingMap<4, 6, 6> map; in TEST() local
295 ASSERT_DEATH(map.SetKeyValue(NULL, "hello"), ""); in TEST()
297 map.SetKeyValue("hi", "there"); in TEST()
298 ASSERT_DEATH(map.GetValueForKey(NULL), ""); in TEST()
299 EXPECT_STREQ("there", map.GetValueForKey("hi")); in TEST()
301 ASSERT_DEATH(map.GetValueForKey(NULL), ""); in TEST()
302 map.RemoveKey("hi"); in TEST()
303 EXPECT_EQ(0u, map.GetCount()); in TEST()