shithub: openh264

ref: d0d6842f73dbbd3a7f2a6284a2efa3257dac8251
dir: /test/encoder/EncUT_InterfaceTest.cpp/

View raw version
#include <gtest/gtest.h>
#include "codec_def.h"
#include "codec_api.h"
#include "BaseEncoderTest.h"

class EncInterfaceCallTest : public ::testing::Test, public BaseEncoderTest {
 public:
  virtual void SetUp() {
    BaseEncoderTest::SetUp();
  };
  virtual void TearDown() {
    BaseEncoderTest::TearDown();
  };

  //testing case

};


TEST_F (EncInterfaceCallTest, BaseParameterVerify) {
  int ret = cmResultSuccess;
  SEncParamBase baseparam;
  memset (&baseparam, 0, sizeof (SEncParamBase));

  baseparam.iPicWidth = 0;
  baseparam.iPicHeight = 7896;

  ret =  encoder_->Initialize (&baseparam);
  EXPECT_EQ (ret, static_cast<int> (cmInitParaError));
}