Home | History | Annotate | Download | only in tests

Lines Matching defs:dict

22     SkRefDict dict;
24 REPORTER_ASSERT(reporter, NULL == dict.find(NULL));
25 REPORTER_ASSERT(reporter, NULL == dict.find("foo"));
26 REPORTER_ASSERT(reporter, NULL == dict.find("bar"));
28 dict.set("foo", &data0);
29 REPORTER_ASSERT(reporter, &data0 == dict.find("foo"));
32 dict.set("foo", &data0);
33 REPORTER_ASSERT(reporter, &data0 == dict.find("foo"));
36 dict.set("foo", &data1);
37 REPORTER_ASSERT(reporter, &data1 == dict.find("foo"));
41 dict.set("foo", NULL);
42 REPORTER_ASSERT(reporter, NULL == dict.find("foo"));
46 dict.set("foo", &data0);
47 dict.set("bar", &data1);
48 REPORTER_ASSERT(reporter, &data0 == dict.find("foo"));
49 REPORTER_ASSERT(reporter, &data1 == dict.find("bar"));
53 dict.set("foo", &data1);
54 REPORTER_ASSERT(reporter, &data1 == dict.find("foo"));
55 REPORTER_ASSERT(reporter, &data1 == dict.find("bar"));
59 dict.removeAll();
60 REPORTER_ASSERT(reporter, NULL == dict.find("foo"));
61 REPORTER_ASSERT(reporter, NULL == dict.find("bar"));