Exemplo n.º 1
0
void test(){
	testAdd();
	testSub();
	testMult();
	testScale();
	testEquals();
	testDivision();
	testAbsolute();
	testArgument();
	printf("All passed!\n");
}
Exemplo n.º 2
0
void testMatrices() {
	std::cout << "Testing Identity" << std::endl;
	testIdentity();
	std::cout << "Testing Translate" << std::endl;
	testTranslate();
	std::cout << "Testing Scale" << std::endl;
	testScale();
	std::cout << "Testing Rotate" << std::endl;
	testRotate();
	std::cout << "Testing Identity Multiply" << std::endl;
	testIdentityMultiply();
	std::cout << "Testing Rotate Translate Multiplication" << std::endl;
	testRotateTranslate();
}
Exemplo n.º 3
0
void CMMFTestVideoDecodeHwDevice::SetScaleOptionsL(const TSize& aTargetSize, TBool aAntiAliasFiltering)
	{
	TSize testScale(KTestScaleX, KTestScaleY);
	if (!(aTargetSize == testScale) || !aAntiAliasFiltering)
		User::Leave(KErrCorrupt);
	}