Home | History | Annotate | Download | only in tests

Lines Matching refs:m1

31     SkMetaData  m1;
33 REPORTER_ASSERT(reporter, !m1.findS32("int"));
34 REPORTER_ASSERT(reporter, !m1.findScalar("scalar"));
35 REPORTER_ASSERT(reporter, !m1.findString("hello"));
36 REPORTER_ASSERT(reporter, !m1.removeS32("int"));
37 REPORTER_ASSERT(reporter, !m1.removeScalar("scalar"));
38 REPORTER_ASSERT(reporter, !m1.removeString("hello"));
39 REPORTER_ASSERT(reporter, !m1.removeString("true"));
40 REPORTER_ASSERT(reporter, !m1.removeString("false"));
42 m1.setS32("int", 12345);
43 m1.setScalar("scalar", SK_Scalar1 * 42);
44 m1.setString("hello", "world");
45 m1.setPtr("ptr", &m1);
46 m1.setBool("true", true);
47 m1.setBool("false", false);
52 m1.setScalar("scalar", SK_Scalar1/2);
54 REPORTER_ASSERT(reporter, m1.findS32("int", &n) && n == 12345);
55 REPORTER_ASSERT(reporter, m1.findScalar("scalar", &s) && s == SK_Scalar1/2);
56 REPORTER_ASSERT(reporter, !strcmp(m1.findString("hello"), "world"));
57 REPORTER_ASSERT(reporter, m1.hasBool("true", true));
58 REPORTER_ASSERT(reporter, m1.hasBool("false", false));
60 SkMetaData::Iter iter(m1);
96 REPORTER_ASSERT(reporter, m1.removeS32("int"));
97 REPORTER_ASSERT(reporter, m1.removeScalar("scalar"));
98 REPORTER_ASSERT(reporter, m1.removeString("hello"));
99 REPORTER_ASSERT(reporter, m1.removeBool("true"));
100 REPORTER_ASSERT(reporter, m1.removeBool("false"));
102 REPORTER_ASSERT(reporter, !m1.findS32("int"));
103 REPORTER_ASSERT(reporter, !m1.findScalar("scalar"));
104 REPORTER_ASSERT(reporter, !m1.findString("hello"));
105 REPORTER_ASSERT(reporter, !m1.findBool("true"));
106 REPORTER_ASSERT(reporter, !m1.findBool("false"));