mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
Use parameter-less constructors for Bin/Pipeline
This commit is contained in:
parent
7eebc0c2bc
commit
cc2aa83e67
2 changed files with 6 additions and 6 deletions
|
@ -122,7 +122,7 @@ public class BinTest
|
|||
[Test]
|
||||
public void TestGhostPad()
|
||||
{
|
||||
Bin bin = new Bin(String.Empty);
|
||||
Bin bin = new Bin();
|
||||
Element filesrc = ElementFactory.Make("filesrc");
|
||||
bin.Add(filesrc);
|
||||
CollectionAssert.IsEmpty(bin.Pads);
|
||||
|
|
|
@ -24,7 +24,7 @@ public class PipelineTest
|
|||
[Test]
|
||||
public void TestPipeline()
|
||||
{
|
||||
Pipeline pipeline = new Pipeline(String.Empty);
|
||||
Pipeline pipeline = new Pipeline();
|
||||
Assert.IsNotNull(pipeline, "Could not create pipeline");
|
||||
Assert.IsNotNull(pipeline.Bus, "Bus on pipeline is null");
|
||||
Assert.IsNotNull(pipeline.Clock, "Clock on pipeline is null");
|
||||
|
@ -33,7 +33,7 @@ public class PipelineTest
|
|||
[Test]
|
||||
public void TestAsyncStateChangeEmpty()
|
||||
{
|
||||
Pipeline pipeline = new Pipeline(String.Empty);
|
||||
Pipeline pipeline = new Pipeline();
|
||||
Assert.IsNotNull(pipeline, "Could not create pipeline");
|
||||
|
||||
Assert.AreEqual(((Element)pipeline).SetState(State.Playing), StateChangeReturn.Success);
|
||||
|
@ -42,7 +42,7 @@ public class PipelineTest
|
|||
[Test]
|
||||
public void TestAsyncStateChangeFakeReady()
|
||||
{
|
||||
Pipeline pipeline = new Pipeline(String.Empty);
|
||||
Pipeline pipeline = new Pipeline();
|
||||
Element src = ElementFactory.Make("fakesrc");
|
||||
Element sink = ElementFactory.Make("fakesink");
|
||||
|
||||
|
@ -57,7 +57,7 @@ public class PipelineTest
|
|||
public void TestAsyncStateChangeFake()
|
||||
{
|
||||
bool done = false;
|
||||
Pipeline pipeline = new Pipeline(String.Empty);
|
||||
Pipeline pipeline = new Pipeline();
|
||||
Assert.IsNotNull(pipeline, "Could not create pipeline");
|
||||
|
||||
Element src = ElementFactory.Make("fakesrc");
|
||||
|
@ -122,7 +122,7 @@ public class PipelineTest
|
|||
|
||||
public void TestBusCallback(bool use_AddWatch)
|
||||
{
|
||||
pipeline = new Pipeline(String.Empty);
|
||||
pipeline = new Pipeline();
|
||||
Assert.IsNotNull(pipeline, "Could not create pipeline");
|
||||
|
||||
Element src = ElementFactory.Make("fakesrc");
|
||||
|
|
Loading…
Reference in a new issue