History

encoder log level adjustment in UT to avoid too many output and some formatting

Sijia Chen committed 11 years ago

Commit f1a7a1a1 parent 44e45313 files · +14 −4Browse files

Showing the changes to test/api/encode_decode_api_test.cpp (1 of 3 files). Show all

Unified · Split

test/api/encode_decode_api_test.cpp+8−4
@@ -1071,7 +1071,7 @@ TEST_P (EncodeDecodeTestAPI, InOutTimeStamp) { · 1070 unmodified lines
10711071 memset (&dstBufInfo_, 0, sizeof (SBufferInfo));
10721072 dstBufInfo_.uiInBsTimeStamp = uiEncTimeStamp;
10731073 rv = decoder_->DecodeFrame2 (NULL, 0, pData, &dstBufInfo_); //reconstruction
1074− if(dstBufInfo_.iBufferStatus == 1) {
1074+ if (dstBufInfo_.iBufferStatus == 1) {
10751075 EXPECT_EQ (uiEncTimeStamp, dstBufInfo_.uiOutYuvTimeStamp);
10761076 }
10771077 iIdx++;
@@ -2064,11 +2064,14 @@ TEST_F (EncodeDecodeTestAPI, SetOptionEncParamExt) { · 986 unmodified lines
20642064 int iSliceNum = 1;
20652065 encoder_->GetDefaultParams (&param_);
20662066 prepareParam (iSpatialLayerNum, iSliceNum, iWidth, iHeight, fFrameRate);
2067+
20672068 int rv = encoder_->InitializeExt (&param_);
20682069 ASSERT_TRUE (rv == cmResultSuccess);
20692070
2070− int32_t iTraceLevel = WELS_LOG_QUIET;
2071− encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
2071+ int iTraceLevel = WELS_LOG_QUIET;
2072+ rv = encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
2073+ ASSERT_TRUE (rv == cmResultSuccess);
2074+
20722075 for (int i = 0; i < iEncFrameNum; i++) {
20732076 int iResult;
20742077 int len = 0;
@@ -2304,7 +2307,8 @@ TEST_F (DecodeCrashTestAPI, DecoderCrashTest) { · 229 unmodified lines
23042307 } while (1); //while (iLoopRound<100);
23052308 fclose (f);
23062309 #else
2307− } while (uiLoopRound < 10);
2310+ }
2311+ while (uiLoopRound < 10);
23082312 #endif
23092313
23102314 }

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