diff -r 000000000000 -r bde4ae8d615e os/ossrv/genericopenlibs/liboil/tsrc/testsuite/composite/src/composite.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/os/ossrv/genericopenlibs/liboil/tsrc/testsuite/composite/src/composite.c Fri Jun 15 03:10:57 2012 +0200 @@ -0,0 +1,428 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + +#include +#include +#include +#include + +#include + +#define LOG_FILE "c:\\logs\\testsuite_composite_log.txt" +#include "std_log_result.h" +#define LOG_FILENAME_LINE __FILE__, __LINE__ + +#define SIZE 20 + +void create_xml(int result) +{ + if(result) + assert_failed = 1; + + testResultXml("testsuite_composite"); + close_log_file(); +} + +void test_oil_composite_add_argb() + { + uint32_t input[SIZE]; + uint32_t output[SIZE]; + int i = 0; + + for(i = 0; i< SIZE; i++) + { + input[i] = i*10; + output[i] = i; + } + + oil_composite_add_argb(output, input, SIZE); + + for(i = 0; i