Lines Matching refs:dict

251     DictionaryValue dict;
252 dict.Set(key, new DeletionTestValue(&deletion_flag));
258 DictionaryValue dict;
259 dict.Set(key, new DeletionTestValue(&deletion_flag));
261 dict.Clear();
266 DictionaryValue dict;
267 dict.Set(key, new DeletionTestValue(&deletion_flag));
269 dict.Set(key, Value::CreateNullValue());
280 DictionaryValue dict;
281 dict.Set(key, new DeletionTestValue(&deletion_flag));
283 EXPECT_TRUE(dict.HasKey(key));
284 EXPECT_FALSE(dict.Remove("absent key", &removed_item));
285 EXPECT_TRUE(dict.Remove(key, &removed_item));
286 EXPECT_FALSE(dict.HasKey(key));
294 DictionaryValue dict;
295 dict.Set(key, new DeletionTestValue(&deletion_flag));
297 EXPECT_TRUE(dict.HasKey(key));
298 EXPECT_TRUE(dict.Remove(key, NULL));
300 EXPECT_FALSE(dict.HasKey(key));
305 DictionaryValue dict;
306 dict.Set("this.is.expanded", Value::CreateNullValue());
307 dict.SetWithoutPathExpansion("this.isnt.expanded", Value::CreateNullValue());
309 EXPECT_FALSE(dict.HasKey("this.is.expanded"));
310 EXPECT_TRUE(dict.HasKey("this"));
312 EXPECT_TRUE(dict.Get("this", &value1));
314 ASSERT_TRUE(dict.GetDictionaryWithoutPathExpansion("this", &value2));
318 EXPECT_TRUE(dict.HasKey("this.isnt.expanded"));
320 EXPECT_FALSE(dict.Get("this.isnt.expanded", &value3));
322 ASSERT_TRUE(dict.GetWithoutPathExpansion("this.isnt.expanded", &value4));
327 DictionaryValue dict;
328 dict.Set("a.long.way.down", Value::CreateIntegerValue(1));
329 dict.Set("a.long.key.path", Value::CreateBooleanValue(true));
332 EXPECT_TRUE(dict.RemovePath("a.long.way.down", &removed_item));
335 EXPECT_FALSE(dict.HasKey("a.long.way.down"));
336 EXPECT_FALSE(dict.HasKey("a.long.way"));
337 EXPECT_TRUE(dict.Get("a.long.key.path", NULL));
340 EXPECT_FALSE(dict.RemovePath("a.long.way.down", &removed_item));
342 EXPECT_TRUE(dict.Get("a.long.key.path", NULL));
345 EXPECT_TRUE(dict.RemovePath("a.long.key.path", &removed_item));
348 EXPECT_TRUE(dict.empty());
743 base->Set("dict", child);
747 EXPECT_TRUE(base->GetDictionary("dict", &ptr));
753 EXPECT_TRUE(merged->GetDictionary("dict", &ptr));
765 DictionaryValue dict;
766 for (DictionaryValue::Iterator it(dict); !it.IsAtEnd(); it.Advance()) {
771 dict.Set("key1", value1.DeepCopy());
773 for (DictionaryValue::Iterator it(dict); !it.IsAtEnd(); it.Advance()) {
782 dict.Set("key2", value2.DeepCopy());
784 for (DictionaryValue::Iterator it(dict); !it.IsAtEnd(); it.Advance()) {