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