Skip to content

Commit

Permalink
Debug through Encoder.State
Browse files Browse the repository at this point in the history
Signed-off-by: Wan, Hao <[email protected]>
  • Loading branch information
harvan committed Dec 24, 2024
1 parent 0ac0439 commit d555b11
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions unittests/src/c2_encoder_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -639,26 +639,26 @@ struct EncoderListener : public C2Component::Listener
// Checks the correctness of all encoding components state machine.
// The component should be able to start from STOPPED (initial) state,
// stop from RUNNING state. Otherwise, C2_BAD_STATE should be returned.
// TEST_P(Encoder, State)
// {
// CallComponentTest<ComponentDesc>(GetParam(),
// [] (const ComponentDesc&, C2CompPtr comp, C2CompIntfPtr) {
TEST_P(Encoder, State)
{
CallComponentTest<ComponentDesc>(GetParam(),
[] (const ComponentDesc&, C2CompPtr comp, C2CompIntfPtr) {

// c2_status_t sts = C2_OK;
c2_status_t sts = C2_OK;

// sts = comp->start();
// EXPECT_EQ(sts, C2_OK);
sts = comp->start();
EXPECT_EQ(sts, C2_OK);

// sts = comp->start();
// EXPECT_EQ(sts, C2_BAD_STATE);
sts = comp->start();
EXPECT_EQ(sts, C2_BAD_STATE);

// sts = comp->stop();
// EXPECT_EQ(sts, C2_OK);
sts = comp->stop();
EXPECT_EQ(sts, C2_OK);

// sts = comp->stop();
// EXPECT_EQ(sts, C2_BAD_STATE);
// } );
// }
sts = comp->stop();
EXPECT_EQ(sts, C2_BAD_STATE);
} );
}

// // Checks list of actually supported parameters by all encoding components.
// // Parameters order doesn't matter.
Expand Down

0 comments on commit d555b11

Please sign in to comment.