summaryrefslogtreecommitdiffstats
path: root/tests/storage
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2010-10-14 14:53:48 +0800
committerPeng Wu <alexepico@gmail.com>2010-10-14 14:53:48 +0800
commitd9268d28d322918e8294dbf81fc41f8e2e12712c (patch)
treeee2d910e85b91cada5fee3a82b73f6e88cd5fb52 /tests/storage
parentd51091e95735909b48f025be18238cd2f7b3931f (diff)
downloadlibpinyin-d9268d28d322918e8294dbf81fc41f8e2e12712c.tar.gz
libpinyin-d9268d28d322918e8294dbf81fc41f8e2e12712c.tar.xz
libpinyin-d9268d28d322918e8294dbf81fc41f8e2e12712c.zip
switch to pinyin.h for tests
Diffstat (limited to 'tests/storage')
-rw-r--r--tests/storage/Makefile.am8
-rw-r--r--tests/storage/test_ngram.cpp4
-rw-r--r--tests/storage/test_parser.cpp2
-rw-r--r--tests/storage/test_phrase_index.cpp4
-rw-r--r--tests/storage/test_phrase_table.cpp3
-rw-r--r--tests/storage/test_pinyin_index.cpp6
6 files changed, 10 insertions, 17 deletions
diff --git a/tests/storage/Makefile.am b/tests/storage/Makefile.am
index 39570a3..281dd5e 100644
--- a/tests/storage/Makefile.am
+++ b/tests/storage/Makefile.am
@@ -15,9 +15,11 @@
## along with this program; if not, write to the Free Software
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-INCLUDES = -I$(top_srcdir)/src/include \
- -I$(top_srcdir)/src/storage \
- @GLIB2_CPPFLAGS@
+INCLUDES = -I$(top_srcdir)/src \
+ -I$(top_srcdir)/src/include \
+ -I$(top_srcdir)/src/storage \
+ -I$(top_srcdir)/src/lookup \
+ @GLIB2_CPPFLAGS@
noinst_PROGRAMS = test_parser \
test_pinyin_index \
diff --git a/tests/storage/test_ngram.cpp b/tests/storage/test_ngram.cpp
index 7bdb141..2110afc 100644
--- a/tests/storage/test_ngram.cpp
+++ b/tests/storage/test_ngram.cpp
@@ -1,7 +1,5 @@
#include <stdio.h>
-#include "memory_chunk.h"
-#include "novel_types.h"
-#include "ngram.h"
+#include "pinyin.h"
int main(int argc, char * argv[]){
diff --git a/tests/storage/test_parser.cpp b/tests/storage/test_parser.cpp
index 70b34ea..7467e8a 100644
--- a/tests/storage/test_parser.cpp
+++ b/tests/storage/test_parser.cpp
@@ -26,7 +26,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include "pinyin_base.h"
+#include "pinyin.h"
static const char *help_msg =
"Too few argument!\n"
diff --git a/tests/storage/test_phrase_index.cpp b/tests/storage/test_phrase_index.cpp
index 72b6d03..d71ce6d 100644
--- a/tests/storage/test_phrase_index.cpp
+++ b/tests/storage/test_phrase_index.cpp
@@ -1,9 +1,7 @@
#include <stdio.h>
#include <sys/time.h>
#include <glib.h>
-#include "memory_chunk.h"
-#include "pinyin_base.h"
-#include "phrase_index.h"
+#include "pinyin.h"
size_t bench_times = 100000;
diff --git a/tests/storage/test_phrase_table.cpp b/tests/storage/test_phrase_table.cpp
index aa4e50b..758cf6c 100644
--- a/tests/storage/test_phrase_table.cpp
+++ b/tests/storage/test_phrase_table.cpp
@@ -1,8 +1,7 @@
#include <string.h>
#include <stdio.h>
#include <sys/time.h>
-#include "novel_types.h"
-#include "phrase_large_table.h"
+#include "pinyin.h"
size_t bench_times = 1000;
diff --git a/tests/storage/test_pinyin_index.cpp b/tests/storage/test_pinyin_index.cpp
index b1e0f14..7c8eb78 100644
--- a/tests/storage/test_pinyin_index.cpp
+++ b/tests/storage/test_pinyin_index.cpp
@@ -1,11 +1,7 @@
#include <string.h>
#include <stdio.h>
#include <sys/time.h>
-#include "novel_types.h"
-#include "pinyin_base.h"
-#include "pinyin_phrase.h"
-#include "pinyin_large_table.h"
-#include "phrase_index.h"
+#include "pinyin.h"
size_t bench_times = 1000;