NS_IMETHODIMP nsQueryContentEventResult::GetOffset(PRUint32 *aOffset) { bool notFound; nsresult rv = GetNotFound(¬Found); NS_ENSURE_SUCCESS(rv, rv); NS_ENSURE_TRUE(!notFound, NS_ERROR_NOT_AVAILABLE); *aOffset = mOffset; return NS_OK; }
int main() { CreateOK(); InsertNULL(); InsertOK(); InsertAlreadyExists(); InsertDifferent(); GetNotInitialized(); GetIllegalInput(); GetOK(); GetNotFound(); RemoveNotInitialized(); RemoveIllegalInput(); RemoveOK(); RemoveNotFound(); PrintToFileOK(); return 0; }