svnno****@sourc*****
svnno****@sourc*****
Mon Feb 16 11:03:20 JST 2009
Revision: 3713 http://svn.sourceforge.jp/view?root=kazehakase&view=rev&rev=3713 Author: ikezoe Date: 2009-02-16 11:03:20 +0900 (Mon, 16 Feb 2009) Log Message: ----------- added. Modified Paths: -------------- kazehakase/trunk/test/Makefile.am Added Paths: ----------- kazehakase/trunk/test/test-utils.c Modified: kazehakase/trunk/test/Makefile.am =================================================================== --- kazehakase/trunk/test/Makefile.am 2009-02-16 02:01:56 UTC (rev 3712) +++ kazehakase/trunk/test/Makefile.am 2009-02-16 02:03:20 UTC (rev 3713) @@ -13,7 +13,8 @@ test-bookmark-separator.la \ test-root-bookmark.la \ test-profile.la \ - test-embed-engine.la + test-embed-engine.la \ + test-utils.la endif EXTRA_DIST = \ @@ -65,6 +66,7 @@ test_profile_la_SOURCES = test-profile.c test_profile_la_LIBADD = kz_test_utils.la test_embed_engine_la_SOURCES = test-embed-engine.c +test_utils_la_SOURCES = test-utils.c echo-cutter: Added: kazehakase/trunk/test/test-utils.c =================================================================== --- kazehakase/trunk/test/test-utils.c (rev 0) +++ kazehakase/trunk/test/test-utils.c 2009-02-16 02:03:20 UTC (rev 3713) @@ -0,0 +1,30 @@ +#include "utils.h" + +#include <gcutter.h> + +static gchar *uri; + +void test_create_profile_key_from_uri (void); + +void +setup (void) +{ + uri = NULL; +} + +void +teardown (void) +{ + g_free(uri); +} + +void +test_create_profile_key_from_uri (void) +{ + uri = create_profile_key_from_uri("http://72.14.235.132/search?q=cache:RUF4oOJPDpsJ:d.hatena.ne.jp/haradats/20061112+cygwin+chsh&hl=ja&ct=clnk&cd=2"); + cut_assert_equal_string("http://72.14.235.132/search", uri); +} + +/* +vi:ts=4:nowrap:ai:expandtab:sw=4 +*/