[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r11285: fixed VideoInput testcase to
From: |
Ben Limmer |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r11285: fixed VideoInput testcase to conform to new naming conventions |
Date: |
Mon, 20 Jul 2009 10:32:04 -0600 |
User-agent: |
Bazaar (1.13.1) |
------------------------------------------------------------
revno: 11285
committer: Ben Limmer <address@hidden>
branch nick: trunk
timestamp: Mon 2009-07-20 10:32:04 -0600
message:
fixed VideoInput testcase to conform to new naming conventions
modified:
testsuite/libmedia.all/test_videoinput.cpp
=== modified file 'testsuite/libmedia.all/test_videoinput.cpp'
--- a/testsuite/libmedia.all/test_videoinput.cpp 2009-07-16 18:44:25
+0000
+++ b/testsuite/libmedia.all/test_videoinput.cpp 2009-07-20 16:32:04
+0000
@@ -59,15 +59,16 @@
main(int argc, char *argv[])
{
test_client();
+ return 0;
}
static void test_client()
{
//create a test class, call constructor
gst::VideoInputGst vig;
- vig.find_vid_devs();
+ vig.findVidDevs();
- std::vector<GnashWebcam*> *vid_vect = vig.get_vid_vect();
+ std::vector<GnashWebcam*> *vid_vect = vig.getVidVect();
if (vid_vect->empty() == true) {
runtest.fail("the video vector was not created by
find_vid_devs");
@@ -81,19 +82,19 @@
runtest.pass("the videotestsrc element was created");
}
- if (vid_vect->at(0)->get_element_ptr() == NULL) {
+ if (vid_vect->at(0)->getElementPtr() == NULL) {
runtest.fail("the videotestsrc didn't get assigned an element
ptr");
} else {
runtest.pass("the videotestsrc was assigned an element ptr");
}
- if (g_strcmp0(vid_vect->at(0)->get_gstreamer_src(), "videotestsrc") ==
1) {
+ if (g_strcmp0(vid_vect->at(0)->getGstreamerSrc(), "videotestsrc") == 1)
{
runtest.fail("the zeroth element doesn't contain the right
source info");
} else {
runtest.pass("the zeroth vid_vect element contains the right
source info");
}
- if (g_strcmp0(vid_vect->at(0)->get_product_name(), "videotest") == 1) {
+ if (g_strcmp0(vid_vect->at(0)->getProductName(), "videotest") == 1) {
runtest.fail("the zeroth element doesn't contain the right
product name info");
} else {
runtest.pass("the zeroth vid_vect element contains the right
product name info");
@@ -105,17 +106,6 @@
}
-/*
-static void
-usage (void)
-{
- cerr << "This program tests SSH support in the libnet library." << endl;
- cerr << "Usage: test_ssh [hvsocpkwar]" << endl;
- cerr << "-h\tHelp" << endl;
- cerr << "-v\tVerbose" << endl;
-
- exit (-1);
-} */
#else
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r11285: fixed VideoInput testcase to conform to new naming conventions,
Ben Limmer <=