Revert "[Tizen] Add DALi Autofill implementation"
[platform/core/uifw/dali-adaptor.git] / automated-tests / src / dali-adaptor-internal / utc-Dali-GifLoader.cpp
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 #include <iostream>
19 #include <stdlib.h>
20 #include <dali-test-suite-utils.h>
21
22 #include <dali/internal/imaging/common/loader-gif.h>
23 #include "image-loaders.h"
24
25 using namespace Dali;
26
27 namespace {
28 static const LoadFunctions GifLoaders( TizenPlatform::LoadGifHeader, TizenPlatform::LoadBitmapFromGif );
29 }
30
31
32 void gif_loader_startup(void)
33 {
34 }
35
36 void gif_loader_cleanup(void)
37 {
38 }
39
40 int UtcDaliGifLoaderInterlaced(void)
41 {
42   ImageDetails interlaced( TEST_IMAGE_DIR "/interlaced.gif", 365u, 227u );
43   TestImageLoading( interlaced, GifLoaders );
44   END_TEST;
45 }
46
47 int UtcDaliGifLoaderErrorBits(void)
48 {
49   ImageDetails errorBits( TEST_IMAGE_DIR "/error-bits.gif", 534u, 749u, 1280u, 1024u );
50   TestImageLoading( errorBits, GifLoaders );
51   END_TEST;
52 }
53
54 int UtcDaliGifLoaderPattern(void)
55 {
56   ImageDetails pattern( TEST_IMAGE_DIR "/pattern.gif", 600u, 600u );
57   TestImageLoading( pattern, GifLoaders );
58   END_TEST;
59 }
60
61 int UtcDaliGifLoaderTransparency(void)
62 {
63   ImageDetails transparency( TEST_IMAGE_DIR "/transparency.gif", 320u, 280u );
64   TestImageLoading( transparency, GifLoaders );
65   END_TEST;
66 }