Lines Matching refs:writer
39 BJsonTextWriter writer(outputData); in TestArrayA() local
41 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteArrayStart()); in TestArrayA()
42 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteString("1234")); in TestArrayA()
43 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteInteger(4567)); in TestArrayA()
44 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteArrayStart()); in TestArrayA()
45 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteString("A")); in TestArrayA()
46 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteString("b")); in TestArrayA()
47 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteString("C\xc3\xa9zanne")); in TestArrayA()
48 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteArrayEnd()); in TestArrayA()
49 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteArrayEnd()); in TestArrayA()
50 writer.Complete(); in TestArrayA()
68 BJsonTextWriter writer(outputData); in TestObjectA() local
70 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteObjectStart()); in TestObjectA()
71 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteObjectName("weather")); in TestObjectA()
72 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteString("raining")); in TestObjectA()
73 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteObjectName("humidity")); in TestObjectA()
74 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteString("too-high")); in TestObjectA()
75 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteObjectName("daysOfWeek")); in TestObjectA()
76 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteArrayStart()); in TestObjectA()
77 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteString("MON")); in TestObjectA()
78 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteString("TUE")); in TestObjectA()
79 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteString("WED")); in TestObjectA()
80 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteString("THR")); in TestObjectA()
81 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteString("FRI")); in TestObjectA()
82 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteArrayEnd()); in TestObjectA()
83 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteObjectEnd()); in TestObjectA()
84 writer.Complete(); in TestObjectA()
113 BJsonTextWriter writer(outputData); in TestInteger() local
117 writer.WriteInteger(JSON_SAMPLE_NUMBER_B_LITERAL)); in TestInteger()
118 writer.Complete(); in TestInteger()
136 BJsonTextWriter writer(outputData); in TestDouble() local
140 writer.WriteDouble(JSON_SAMPLE_NUMBER_A_LITERAL)); in TestDouble()
141 writer.Complete(); in TestDouble()
159 BJsonTextWriter writer(outputData); in TestFalse() local
162 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteFalse()); in TestFalse()
163 writer.Complete(); in TestFalse()
182 BJsonTextWriter writer(outputData); in TestStringGeneric() local
184 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteString(input)); in TestStringGeneric()
185 writer.Complete(); in TestStringGeneric()