Lines Matching refs:msg

26 	BMessage msg;  in MessageInt32ItemTest1()  local
28 CPPUNIT_ASSERT(msg.FindInt32("an int32", &out) == B_NAME_NOT_FOUND); in MessageInt32ItemTest1()
30 CPPUNIT_ASSERT(msg.FindInt32("an int32") == 0); in MessageInt32ItemTest1()
31 CPPUNIT_ASSERT(!msg.HasInt32("an int32")); in MessageInt32ItemTest1()
34 CPPUNIT_ASSERT(msg.FindData("an int32", B_INT32_TYPE, &ptr, &size) == in MessageInt32ItemTest1()
41 BMessage msg; in MessageInt32ItemTest2() local
44 CPPUNIT_ASSERT(msg.AddInt32("an int32", in) == B_OK); in MessageInt32ItemTest2()
45 CPPUNIT_ASSERT(msg.HasInt32("an int32")); in MessageInt32ItemTest2()
46 CPPUNIT_ASSERT(msg.FindInt32("an int32") == in); in MessageInt32ItemTest2()
47 CPPUNIT_ASSERT(msg.FindInt32("an int32", &out) == B_OK); in MessageInt32ItemTest2()
51 CPPUNIT_ASSERT(msg.FindData("an int32", B_INT32_TYPE, (const void**)&pout, in MessageInt32ItemTest2()
59 BMessage msg; in MessageInt32ItemTest3() local
63 CPPUNIT_ASSERT(msg.AddInt32("an int32", in) == B_OK); in MessageInt32ItemTest3()
64 CPPUNIT_ASSERT(msg.ReplaceInt32("an int32", in2) == B_OK); in MessageInt32ItemTest3()
65 CPPUNIT_ASSERT(msg.HasInt32("an int32")); in MessageInt32ItemTest3()
66 CPPUNIT_ASSERT(msg.FindInt32("an int32") == in2); in MessageInt32ItemTest3()
67 CPPUNIT_ASSERT(msg.FindInt32("an int32", &out) == B_OK); in MessageInt32ItemTest3()
72 CPPUNIT_ASSERT(msg.FindData("an int32", B_INT32_TYPE, (const void**)&pout, in MessageInt32ItemTest3()
80 BMessage msg; in MessageInt32ItemTest4() local
82 CPPUNIT_ASSERT(msg.FindInt32("an int32", 1, &out) == B_NAME_NOT_FOUND); in MessageInt32ItemTest4()
84 CPPUNIT_ASSERT(msg.FindInt32("an int32", 1) == 0); in MessageInt32ItemTest4()
85 CPPUNIT_ASSERT(!msg.HasInt32("an int32", 1)); in MessageInt32ItemTest4()
88 CPPUNIT_ASSERT(msg.FindData("an int32", B_INT32_TYPE, 1, &ptr, &size) == in MessageInt32ItemTest4()
95 BMessage msg; in MessageInt32ItemTest5() local
103 CPPUNIT_ASSERT(msg.AddInt32("an int32", in[i]) == B_OK); in MessageInt32ItemTest5()
108 CPPUNIT_ASSERT(msg.HasInt32("an int32", i)); in MessageInt32ItemTest5()
109 CPPUNIT_ASSERT(msg.FindInt32("an int32", i) == in[i]); in MessageInt32ItemTest5()
110 CPPUNIT_ASSERT(msg.FindInt32("an int32", i, &out) == B_OK); in MessageInt32ItemTest5()
112 CPPUNIT_ASSERT(msg.FindData("an int32", B_INT32_TYPE, i, in MessageInt32ItemTest5()
121 BMessage msg; in MessageInt32ItemTest6() local
129 CPPUNIT_ASSERT(msg.AddInt32("an int32", in[i]) == B_OK); in MessageInt32ItemTest6()
132 CPPUNIT_ASSERT(msg.ReplaceInt32("an int32", rIndex, in2) == B_OK); in MessageInt32ItemTest6()
133 CPPUNIT_ASSERT(msg.HasInt32("an int32", rIndex)); in MessageInt32ItemTest6()
134 CPPUNIT_ASSERT(msg.FindInt32("an int32", rIndex) == in2); in MessageInt32ItemTest6()
135 CPPUNIT_ASSERT(msg.FindInt32("an int32", rIndex, &out) == B_OK); in MessageInt32ItemTest6()
140 CPPUNIT_ASSERT(msg.FindData("an int32", B_INT32_TYPE, rIndex, in MessageInt32ItemTest6()
148 BMessage msg; in MessageInt32ItemTest7() local
151 CPPUNIT_ASSERT(msg.AddData("an int32", B_INT32_TYPE, (const void*)&in, in MessageInt32ItemTest7()
153 CPPUNIT_ASSERT(msg.HasInt32("an int32")); in MessageInt32ItemTest7()
154 CPPUNIT_ASSERT(msg.FindInt32("an int32") == in); in MessageInt32ItemTest7()
155 CPPUNIT_ASSERT(msg.FindInt32("an int32", &out) == B_OK); in MessageInt32ItemTest7()
159 CPPUNIT_ASSERT(msg.FindData("an int32", B_INT32_TYPE, (const void**)&pout, in MessageInt32ItemTest7()
167 BMessage msg; in MessageInt32ItemTest8() local
175 CPPUNIT_ASSERT(msg.AddData("an int32", B_INT32_TYPE, in MessageInt32ItemTest8()
181 CPPUNIT_ASSERT(msg.HasInt32("an int32", i)); in MessageInt32ItemTest8()
182 CPPUNIT_ASSERT(msg.FindInt32("an int32", i) == in[i]); in MessageInt32ItemTest8()
183 CPPUNIT_ASSERT(msg.FindInt32("an int32", i, &out) == B_OK); in MessageInt32ItemTest8()
185 CPPUNIT_ASSERT(msg.FindData("an int32", B_INT32_TYPE, i, in MessageInt32ItemTest8()