[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/rtmp r9723: add test cases for stuff not i
From: |
rob |
Subject: |
[Gnash-commit] /srv/bzr/gnash/rtmp r9723: add test cases for stuff not in the cache too. |
Date: |
Wed, 12 Nov 2008 18:33:00 -0700 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9723
committer: address@hidden
branch nick: rtmp
timestamp: Wed 2008-11-12 18:33:00 -0700
message:
add test cases for stuff not in the cache too.
modified:
testsuite/libnet.all/test_cache.cpp
=== modified file 'testsuite/libnet.all/test_cache.cpp'
--- a/testsuite/libnet.all/test_cache.cpp 2008-11-13 01:15:58 +0000
+++ b/testsuite/libnet.all/test_cache.cpp 2008-11-13 01:33:00 +0000
@@ -195,10 +195,32 @@
cache.addFile("foo", &file1);
if ((cache.findFile("foo")->getFileSize() == file1.getFileSize())
&& (cache.findFile("bar") == 0)) {
- runtest.pass("addFile()/findFile()");
- } else {
- runtest.fail("addFile()/findFile()");
- }
+ runtest.pass("Cache::addFile()/findFile()");
+ } else {
+ runtest.fail("Cache::addFile()/findFile()");
+ }
+
+ // see what happens if we try an uninitialized Cache.
+ Cache c1;
+
+ if (c1.findPath("foo").size() == 0) {
+ runtest.pass("Cache::findPath(empty)");
+ } else {
+ runtest.fail("Cache::findPath(empty)");
+ }
+
+ if (c1.findResponse("foo").size() == 0) {
+ runtest.pass("Cache::findResponse(empty)");
+ } else {
+ runtest.fail("Cache::findResponse(empty)");
+ }
+
+ if (c1.findFile("foo") == 0) {
+ runtest.pass("Cache::findFile(empty)");
+ } else {
+ runtest.fail("Cache::findFile(empty)");
+ }
+
}
/// \brief create a test file to read in later. This lets us create
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/rtmp r9723: add test cases for stuff not in the cache too.,
rob <=