History

add encoder interface ut

ruil2 committed 12 years ago

Commit e58de201 parent b1a76aa8 files · +41 −7Browse files

Showing the changes to test/encoder/EncUT_InterfaceTest.cpp (1 of 8 files). Show all

Unified · Split

test/encoder/EncUT_InterfaceTest.cpp+30−0
@@ -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+}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t