Merge "idct_test: don't use std::nothrow anymore"

This commit is contained in:
Johann Koenig 2017-06-09 20:42:39 +00:00 committed by Gerrit Code Review
commit 6dcd9b37ea

View File

@ -30,11 +30,14 @@ class IDCTTest : public ::testing::TestWithParam<IdctFunc> {
virtual void SetUp() {
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());
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());
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());
}