Lines Matching defs:B_OK

30 	status_t PushValue(int32 value)			{ PushInt32(value); return B_OK; }
31 status_t PushValue(uint32 value) { PushUInt32(value); return B_OK; }
32 status_t PushValue(int64 value) { PushInt64(value); return B_OK; }
33 status_t PushValue(uint64 value) { PushUInt64(value); return B_OK; }
34 status_t PushValue(float value) { PushFloat(value); return B_OK; }
35 status_t PushValue(double value) { PushDouble(value); return B_OK; }
38 PushString(value.String(), caseInsensitive); return B_OK;
43 return B_OK;
48 return B_OK;
243 status_t error = B_OK;
246 if (error != B_OK)
284 if (error == B_OK)
550 if (fApplication->Init() != B_OK) {
577 TestPredicate(const PredicateNode &predicateNode, status_t pushResult = B_OK,
578 status_t getResult = B_OK)
592 if (pushResult == B_OK) {
601 if (getResult == B_OK) {
612 if (pushResult == B_OK) {
616 if (getResult == B_OK)
624 if (pushResult == B_OK) {
626 = (getResult == B_OK ? predicateString.Length() + 1 : 0);
633 CPPUNIT_ASSERT( query.SetPredicate(predicateString.String()) == B_OK );
637 CPPUNIT_ASSERT( query.GetPredicate(&predicate) == B_OK );
661 TestPredicate(OpNode(op, new AttributeNode("attribute"), NULL), B_OK,
667 TestPredicate(OpNode(op, NULL, NULL), B_OK, B_NO_INIT);
671 ).addChild(new Int32Node(42)), B_OK, B_NO_INIT);
735 TestPredicate(OpNode(B_NOT, NULL), B_OK, B_NO_INIT);
775 B_OK, B_NO_INIT);
779 ), B_OK, B_NO_INIT);
789 CPPUNIT_ASSERT( predicate1.push(query) == B_OK );
791 == B_OK );
793 CPPUNIT_ASSERT( query.GetPredicate(&predicate) == B_OK );
805 CPPUNIT_ASSERT( predicate1.push(query) == B_OK );
807 CPPUNIT_ASSERT( query.GetPredicate(&predicate) == B_OK );
810 == B_OK );
811 CPPUNIT_ASSERT( query.GetPredicate(&predicate) == B_OK );
823 CPPUNIT_ASSERT( predicate1.push(query) == B_OK );
827 == B_OK );
829 CPPUNIT_ASSERT( query.GetPredicate(&predicate) == B_OK );
837 == B_OK );
839 CPPUNIT_ASSERT( volume.InitCheck() == B_OK );
840 CPPUNIT_ASSERT( query.SetVolume(&volume) == B_OK );
841 CPPUNIT_ASSERT( query.Fetch() == B_OK );
846 CPPUNIT_ASSERT( query.PushDate("20 May 2002") == B_OK );
847 CPPUNIT_ASSERT( query.PushValue((int32)42) == B_OK );
848 CPPUNIT_ASSERT( query.PushValue((uint32)42) == B_OK );
849 CPPUNIT_ASSERT( query.PushValue((int64)42) == B_OK );
850 CPPUNIT_ASSERT( query.PushValue((uint64)42) == B_OK );
851 CPPUNIT_ASSERT( query.PushValue((float)42) == B_OK );
852 CPPUNIT_ASSERT( query.PushValue((double)42) == B_OK );
853 CPPUNIT_ASSERT( query.PushValue("hello") == B_OK );
854 CPPUNIT_ASSERT( query.PushAttr("attribute") == B_OK );
855 CPPUNIT_ASSERT( query.PushOp(B_EQ) == B_OK );
876 CPPUNIT_ASSERT( query.SetPredicate("hello") == B_OK );
914 CPPUNIT_ASSERT( query.SetVolume(&volume) == B_OK );
923 CPPUNIT_ASSERT( volume.InitCheck() == B_OK );
924 CPPUNIT_ASSERT( query.SetVolume(&volume) == B_OK );
950 CPPUNIT_ASSERT( query.SetTarget(messenger) == B_OK );
959 == B_OK );
961 CPPUNIT_ASSERT( volume.InitCheck() == B_OK );
962 CPPUNIT_ASSERT( query.SetVolume(&volume) == B_OK );
963 CPPUNIT_ASSERT( query.Fetch() == B_OK );
975 == B_OK );
988 CPPUNIT_ASSERT( query.SetPredicate(predicate) == B_OK );
990 CPPUNIT_ASSERT( volume.InitCheck() == B_OK );
991 CPPUNIT_ASSERT( query.SetVolume(&volume) == B_OK );
992 CPPUNIT_ASSERT( query.Fetch() == B_OK );
1013 while (query.GetNextEntry(&entry) == B_OK) {
1020 CPPUNIT_ASSERT( entry.InitCheck() == B_OK );
1021 CPPUNIT_ASSERT( entry.GetPath(&path) == B_OK );
1034 while (query.GetNextRef(&ref) == B_OK) {
1041 CPPUNIT_ASSERT( path.InitCheck() == B_OK );
1064 CPPUNIT_ASSERT( path.InitCheck() == B_OK );
1089 CPPUNIT_ASSERT( entpath.InitCheck() == B_OK );
1091 if (query.GetNextRef(&ref) == B_OK) {
1093 CPPUNIT_ASSERT( refpath.InitCheck() == B_OK );
1096 if (query.GetNextEntry(&entry) == B_OK) {
1098 CPPUNIT_ASSERT( entry.InitCheck() == B_OK );
1099 CPPUNIT_ASSERT( entry.GetPath(&path) == B_OK );
1129 CPPUNIT_ASSERT( volume.InitCheck() == B_OK );
1130 CPPUNIT_ASSERT( query.SetVolume(&volume) == B_OK );
1138 == B_OK );
1146 == B_OK );
1148 CPPUNIT_ASSERT( volume.InitCheck() == B_OK );
1149 CPPUNIT_ASSERT( query.SetVolume(&volume) == B_OK );
1157 == B_OK );
1159 CPPUNIT_ASSERT( volume.InitCheck() == B_OK );
1160 CPPUNIT_ASSERT( query.SetVolume(&volume) == B_OK );
1161 CPPUNIT_ASSERT( query.Fetch() == B_OK );
1207 CPPUNIT_ASSERT( query.Clear() == B_OK );
1214 == B_OK );
1216 CPPUNIT_ASSERT( volume.InitCheck() == B_OK );
1217 CPPUNIT_ASSERT( query.SetVolume(&volume) == B_OK );
1218 CPPUNIT_ASSERT( query.Fetch() == B_OK );
1219 CPPUNIT_ASSERT( query.Clear() == B_OK );
1227 == B_OK );
1229 CPPUNIT_ASSERT( volume.InitCheck() == B_OK );
1230 CPPUNIT_ASSERT( query.SetVolume(&volume) == B_OK );
1231 CPPUNIT_ASSERT( query.Fetch() == B_OK );
1232 CPPUNIT_ASSERT( query.Clear() == B_OK );
1234 == B_OK );
1235 CPPUNIT_ASSERT( volume.SetTo(dev_for_path("/boot")) == B_OK );
1236 CPPUNIT_ASSERT( query.SetVolume(&volume) == B_OK );
1237 CPPUNIT_ASSERT( query.Fetch() == B_OK );
1246 == B_OK );
1248 CPPUNIT_ASSERT( volume.InitCheck() == B_OK );
1249 CPPUNIT_ASSERT( query.SetVolume(&volume) == B_OK );
1250 CPPUNIT_ASSERT( query.Fetch() == B_OK );
1279 == B_OK );
1281 CPPUNIT_ASSERT( volume.InitCheck() == B_OK );
1282 CPPUNIT_ASSERT( query.SetVolume(&volume) == B_OK );
1283 CPPUNIT_ASSERT( query.Fetch() == B_OK );
1304 CPPUNIT_ASSERT( node.InitCheck() == B_OK );
1306 CPPUNIT_ASSERT( node.GetNodeRef(&nref) == B_OK );
1309 CPPUNIT_ASSERT( get_ref_for_path(entry->cpath, &ref) == B_OK );
1353 == B_OK );
1357 == B_OK );
1361 == B_OK );
1365 == B_OK );
1370 == B_OK );
1401 == B_OK );
1403 CPPUNIT_ASSERT( volume.InitCheck() == B_OK );
1404 CPPUNIT_ASSERT( query.SetVolume(&volume) == B_OK );
1405 CPPUNIT_ASSERT( query.SetTarget(target) == B_OK );
1406 CPPUNIT_ASSERT( query.Fetch() == B_OK );
1435 CPPUNIT_ASSERT( query.SetTarget(target) == B_OK );
1446 while (query.GetNextEntry(&entry) == B_OK) {
1448 CPPUNIT_ASSERT( entry.InitCheck() == B_OK );
1449 CPPUNIT_ASSERT( entry.GetPath(&path) == B_OK );