idct_test: don't use std::nothrow anymore
But still check for NULL before calling Init() Change-Id: I2bf2887e1064c9103d29c542d20365c0aea75d76
This commit is contained in:
parent
943f9ee25c
commit
92373a5bb2
@ -30,11 +30,14 @@ class IDCTTest : public ::testing::TestWithParam<IdctFunc> {
|
|||||||
virtual void SetUp() {
|
virtual void SetUp() {
|
||||||
UUT = GetParam();
|
UUT = GetParam();
|
||||||
|
|
||||||
input = new (std::nothrow) Buffer<int16_t>(4, 4, 0);
|
input = new Buffer<int16_t>(4, 4, 0);
|
||||||
|
ASSERT_TRUE(input != NULL);
|
||||||
ASSERT_TRUE(input->Init());
|
ASSERT_TRUE(input->Init());
|
||||||
predict = new (std::nothrow) Buffer<uint8_t>(4, 4, 3);
|
predict = new Buffer<uint8_t>(4, 4, 3);
|
||||||
|
ASSERT_TRUE(predict != NULL);
|
||||||
ASSERT_TRUE(predict->Init());
|
ASSERT_TRUE(predict->Init());
|
||||||
output = new (std::nothrow) Buffer<uint8_t>(4, 4, 3);
|
output = new Buffer<uint8_t>(4, 4, 3);
|
||||||
|
ASSERT_TRUE(output != NULL);
|
||||||
ASSERT_TRUE(output->Init());
|
ASSERT_TRUE(output->Init());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user