Showing the changes to test/encoder/EncUT_InterfaceTest.cpp (1 of 8 files). Show all
Unified · Split
| @@ -0,0 +1,30 @@ | ||
| 1 | +#include <gtest/gtest.h> | |
| 2 | +#include "codec_def.h" | |
| 3 | +#include "codec_api.h" | |
| 4 | +#include "BaseEncoderTest.h" | |
| 5 | + | |
| 6 | +class EncInterfaceCallTest : public ::testing::Test, public BaseEncoderTest { | |
| 7 | + public: | |
| 8 | + virtual void SetUp() { | |
| 9 | + BaseEncoderTest::SetUp(); | |
| 10 | + }; | |
| 11 | + virtual void TearDown() { | |
| 12 | + BaseEncoderTest::TearDown(); | |
| 13 | + }; | |
| 14 | + | |
| 15 | + //testing case | |
| 16 | + | |
| 17 | +}; | |
| 18 | + | |
| 19 | + | |
| 20 | +TEST_F (EncInterfaceCallTest, BaseParameterVerify) { | |
| 21 | + int ret = cmResultSuccess; | |
| 22 | + SEncParamBase baseparam; | |
| 23 | + memset (&baseparam, 0, sizeof (SEncParamBase)); | |
| 24 | + | |
| 25 | + baseparam.iPicWidth = 0; | |
| 26 | + baseparam.iPicHeight = 7896; | |
| 27 | + | |
| 28 | + ret = encoder_->Initialize (&baseparam); | |
| 29 | + EXPECT_EQ (ret, static_cast<int> (cmInitParaError)); | |
| 30 | +} | |