[prev in list] [next in list] [prev in thread] [next in thread]
List: haiku-commits
Subject: [Haiku-commits] r31336 -
From: zooey at BerliOS <zooey () mail ! berlios ! de>
Date: 2009-06-30 15:35:35
Message-ID: 200906301535.n5UFZZha004446 () sheep ! berlios ! de
[Download RAW message or body]
Author: zooey
Date: 2009-06-30 17:35:34 +0200 (Tue, 30 Jun 2009)
New Revision: 31336
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=31336&view=rev
Modified:
haiku/branches/components/gsoc-locale-kit/src/tests/kits/locale/Jamfile
haiku/branches/components/gsoc-locale-kit/src/tests/kits/locale/catalogSpeed.cpp
Log:
* adjusted to changes in locale kit
Modified: haiku/branches/components/gsoc-locale-kit/src/tests/kits/locale/Jamfile
===================================================================
--- haiku/branches/components/gsoc-locale-kit/src/tests/kits/locale/Jamfile 2009-06-30 \
15:34:44 UTC (rev 31335)
+++ haiku/branches/components/gsoc-locale-kit/src/tests/kits/locale/Jamfile 2009-06-30 \
15:35:34 UTC (rev 31336) @@ -1,6 +1,7 @@
SubDir HAIKU_TOP src tests kits locale ;
UsePublicHeaders locale ;
+UsePrivateHeaders locale ;
# Pseudo target to build all locale kit tests
NotFile LocaleKitTests ;
Modified: haiku/branches/components/gsoc-locale-kit/src/tests/kits/locale/catalogSpeed.cpp
===================================================================
--- haiku/branches/components/gsoc-locale-kit/src/tests/kits/locale/catalogSpeed.cpp 2009-06-30 \
15:34:44 UTC (rev 31335)
+++ haiku/branches/components/gsoc-locale-kit/src/tests/kits/locale/catalogSpeed.cpp 2009-06-30 \
15:35:34 UTC (rev 31336) @@ -1,4 +1,4 @@
-/*
+/*
** Copyright 2003, Oliver Tappe, zooey@hirschkaefer.de. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
@@ -12,7 +12,7 @@
#include <StopWatch.h>
#include <Catalog.h>
-#include <DefaultCatalog.h>
+#include <HashMapCatalog.h>
#include <Entry.h>
#include <Locale.h>
#include <Path.h>
@@ -65,7 +65,7 @@
cat1.SetString(strs[i].String(), trls[i].String(), ctxs[i].String());
}
watch.Suspend();
- printf("\tadded %ld strings in %9Ld usecs\n",
+ printf("\tadded %ld strings in %9Ld usecs\n",
cat1.CountItems(), watch.ElapsedTime());
watch.Reset();
@@ -73,7 +73,7 @@
res = cat1.WriteToFile("./locale/catalogs/"catSig"/klingon.catalog");
assert(res == B_OK);
watch.Suspend();
- printf("\t%ld strings written to disk in %9Ld usecs\n",
+ printf("\t%ld strings written to disk in %9Ld usecs\n",
cat1.CountItems(), watch.ElapsedTime());
}
@@ -84,11 +84,11 @@
BStopWatch watch("catalogSpeed", true);
BCatalog *cat = be_catalog = new BCatalog(catSig, "klingon");
-
+
assert(cat != NULL);
assert(cat->InitCheck() == B_OK);
watch.Suspend();
- printf("\t%ld strings read from disk in %9Ld usecs\n",
+ printf("\t%ld strings read from disk in %9Ld usecs\n",
cat->CountItems(), watch.ElapsedTime());
watch.Reset();
@@ -97,7 +97,7 @@
translated = TR(strs[i].String());
}
watch.Suspend();
- printf("\tlooked up %lu strings in %9Ld usecs\n",
+ printf("\tlooked up %lu strings in %9Ld usecs\n",
kNumStrings, watch.ElapsedTime());
delete cat;
@@ -131,7 +131,7 @@
cat1.SetString(i, trls[i].String());
}
watch.Suspend();
- printf("\tadded %ld strings by id in %9Ld usecs\n",
+ printf("\tadded %ld strings by id in %9Ld usecs\n",
cat1.CountItems(), watch.ElapsedTime());
watch.Reset();
@@ -139,7 +139,7 @@
res = cat1.WriteToFile("./locale/catalogs/"catSig"/klingon.catalog");
assert( res == B_OK);
watch.Suspend();
- printf("\t%ld strings written to disk in %9Ld usecs\n",
+ printf("\t%ld strings written to disk in %9Ld usecs\n",
cat1.CountItems(), watch.ElapsedTime());
}
@@ -154,7 +154,7 @@
assert(cat != NULL);
assert(cat->InitCheck() == B_OK);
watch.Suspend();
- printf("\t%ld strings read from disk in %9Ld usecs\n",
+ printf("\t%ld strings read from disk in %9Ld usecs\n",
cat->CountItems(), watch.ElapsedTime());
watch.Reset();
@@ -163,7 +163,7 @@
translated = TR_ID(i);
}
watch.Suspend();
- printf("\tlooked up %lu strings in %9Ld usecs\n",
+ printf("\tlooked up %lu strings in %9Ld usecs\n",
kNumStrings, watch.ElapsedTime());
delete cat;
@@ -173,7 +173,7 @@
int
main(int argc, char **argv)
{
- BApplication* testApp
+ BApplication* testApp
= new BApplication("application/"catSig);
// change to app-folder:
@@ -199,6 +199,6 @@
catSpeed.TestIdLookup();
delete testApp;
-
+
return 0;
}
_______________________________________________
Haiku-commits mailing list
Haiku-commits@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/haiku-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic