Skip to content

Commit

Permalink
Temp commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
mithro committed Aug 4, 2016
1 parent b446658 commit 4738903
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions tests/unit/test_gstswitchserver.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/* gst-switch -*- c -*-
* Copyright (C) 2015 Tim 'mithro' Ansell <mithro@mithis.com>
*
* This file is part of gst-switch.
*
* gst-switch is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <glib.h>

static void
get_scaled_video_caps_str (void)
{

GString *str = gst_switch_server_get_scaled_video_caps_str(123, 456);
g_assert (desc != NULL && strlen (desc->str) > 0);
g_assert_cmpstr("", ==, desc->str);
}


int
main (int argc, char **argv)
{
g_test_init (&argc, &argv, NULL);
g_test_set_nonfatal_assertions ();
g_test_add_func ("/gstswitch/server/get_scaled_video_caps_str", get_scaled_video_caps_str);
return g_test_run ();
}

0 comments on commit 4738903

Please sign in to comment.