Home | History | Annotate | Download | only in tests

Lines Matching refs:m1

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