Missed commit in order to fix compilation using '--enable-fatal' and '--disable-depre...
[hildon] / tests / check-hildon-banner.c
index 349e65e..ed3ee42 100644 (file)
@@ -8,7 +8,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public License
  * as published by the Free Software Foundation; version 2.1 of
- * the License.
+ * the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
  * 02110-1301 USA
  *
  */
+#ifndef HILDON_DISABLE_DEPRECATED
 
 #include <stdlib.h>
 #include <check.h>
 #include <gtk/gtkmain.h>
 #include "test_suites.h"
 #include "check_utils.h"
-#include "hildon-banner.h"
-#include "hildon-window.h"
+#include <hildon/hildon-banner.h>
+#include <hildon/hildon-window.h>
 
 /* -------------------- Fixtures -------------------- */
 
@@ -65,7 +66,7 @@ fx_teardown_default_banner ()
  * Purpose: Check creation of new animation banner with regular values
  * Cases considered:
  *    - Create an animation banner with NULL animation name and TEST_STRING text. 
- *    - Create an animation banner with qgn_list_mahjong animation name and "" text.
+ *    - Create an animation banner with dummy animation name and "" text.
  */
 START_TEST (test_show_animation_regular)
 {
@@ -86,9 +87,9 @@ START_TEST (test_show_animation_regular)
   
   gtk_widget_destroy(GTK_WIDGET(hildon_banner));
 
-  /*Test 2: Create an animation banner with animation name set to "qgn_list_mahjong" and text set to "". */
+  /*Test 2: Create an animation banner with animation name set to "dummy" and text set to "". */
   text="";
-  animation_name = "qgn_list_mahjong";
+  animation_name = "dummy";
   hildon_banner = HILDON_BANNER(hildon_banner_show_animation(b_window,animation_name,text));
     
   fail_if(!HILDON_IS_BANNER(hildon_banner),
@@ -124,7 +125,7 @@ START_TEST (test_show_animation_invalid)
     
   /*Test 2: Create an animation banner with NULL window. */
   text="";
-  animation_name = "qgn_list_mahjong";
+  animation_name = "dummy";
   hildon_banner = HILDON_BANNER(hildon_banner_show_animation(NULL,animation_name,text));
     
   fail_if(!HILDON_IS_BANNER(hildon_banner),
@@ -215,8 +216,6 @@ START_TEST (test_show_progress_invalid)
 }
 END_TEST
 
-
-
 /* ---------- Suite creation ---------- */
 Suite *create_hildon_banner_suite()
 {
@@ -225,7 +224,7 @@ Suite *create_hildon_banner_suite()
 
   /* Create test cases */
   TCase *tc1 = tcase_create("show_animation");
-  TCase *tc2 = tcase_create("show_animation");
+  TCase *tc2 = tcase_create("show_progress");
 
   /* Create unit tests for hildon_banner_show_animation and add it to the suite */
   tcase_add_checked_fixture(tc1, fx_setup_default_banner, fx_teardown_default_banner);
@@ -244,3 +243,5 @@ Suite *create_hildon_banner_suite()
   /* Return created suite */
   return s;             
 }
+
+#endif