Home | History | Annotate | Download | only in tests

Lines Matching refs:m1

39     SkMetaData  m1;
41 REPORTER_ASSERT(reporter, !m1.findS32("int"));
42 REPORTER_ASSERT(reporter, !m1.findScalar("scalar"));
43 REPORTER_ASSERT(reporter, !m1.findString("hello"));
44 REPORTER_ASSERT(reporter, !m1.removeS32("int"));
45 REPORTER_ASSERT(reporter, !m1.removeScalar("scalar"));
46 REPORTER_ASSERT(reporter, !m1.removeString("hello"));
47 REPORTER_ASSERT(reporter, !m1.removeString("true"));
48 REPORTER_ASSERT(reporter, !m1.removeString("false"));
50 m1.setS32("int", 12345);
51 m1.setScalar("scalar", SK_Scalar1 * 42);
52 m1.setString("hello", "world");
53 m1.setPtr("ptr", &m1);
54 m1.setBool("true", true);
55 m1.setBool("false", false);
60 m1.setScalar("scalar", SK_Scalar1/2);
62 REPORTER_ASSERT(reporter, m1.findS32("int", &n) && n == 12345);
63 REPORTER_ASSERT(reporter, m1.findScalar("scalar", &s) && s == SK_Scalar1/2);
64 REPORTER_ASSERT(reporter, !strcmp(m1.findString("hello"), "world"));
65 REPORTER_ASSERT(reporter, m1.hasBool("true", true));
66 REPORTER_ASSERT(reporter, m1.hasBool("false", false));
68 SkMetaData::Iter iter(m1);
104 REPORTER_ASSERT(reporter, m1.removeS32("int"));
105 REPORTER_ASSERT(reporter, m1.removeScalar("scalar"));
106 REPORTER_ASSERT(reporter, m1.removeString("hello"));
107 REPORTER_ASSERT(reporter, m1.removeBool("true"));
108 REPORTER_ASSERT(reporter, m1.removeBool("false"));
110 REPORTER_ASSERT(reporter, !m1.findS32("int"));
111 REPORTER_ASSERT(reporter, !m1.findScalar("scalar"));
112 REPORTER_ASSERT(reporter, !m1.findString("hello"));
113 REPORTER_ASSERT(reporter, !m1.findBool("true"));
114 REPORTER_ASSERT(reporter, !m1.findBool("false"));