chromium/third_party/libvpx/source/libvpx/test/invalid_file_test.cc

/*
 *  Copyright (c) 2014 The WebM project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
 *  in the file PATENTS.  All contributing project authors may
 *  be found in the AUTHORS file in the root of the source tree.
 */

#include <cstdio>
#include <cstdlib>
#include <memory>
#include <string>
#include <vector>
#include "gtest/gtest.h"
#include "./vpx_config.h"
#include "test/codec_factory.h"
#include "test/decode_test_driver.h"
#include "test/ivf_video_source.h"
#include "test/util.h"
#if CONFIG_WEBM_IO
#include "test/webm_video_source.h"
#endif
#include "vpx_mem/vpx_mem.h"

namespace {

struct DecodeParam {};

std::ostream &operator<<(std::ostream &os, const DecodeParam &dp) {}

class InvalidFileTest : public ::libvpx_test::DecoderTest,
                        public ::libvpx_test::CodecTestWithParam<DecodeParam> {};

TEST_P(InvalidFileTest, ReturnCode) {}

#if CONFIG_VP8_DECODER
const DecodeParam kVP8InvalidFileTests[] =;

VP8_INSTANTIATE_TEST_SUITE();
#endif  // CONFIG_VP8_DECODER

#if CONFIG_VP9_DECODER
const DecodeParam kVP9InvalidFileTests[] =;

VP9_INSTANTIATE_TEST_SUITE();
#endif  // CONFIG_VP9_DECODER

// This class will include test vectors that are expected to fail
// peek. However they are still expected to have no fatal failures.
class InvalidFileInvalidPeekTest : public InvalidFileTest {};

TEST_P(InvalidFileInvalidPeekTest, ReturnCode) {}

#if CONFIG_VP8_DECODER
const DecodeParam kVP8InvalidPeekTests[] =;

VP8_INSTANTIATE_TEST_SUITE();
#endif  // CONFIG_VP8_DECODER

#if CONFIG_VP9_DECODER
const DecodeParam kVP9InvalidFileInvalidPeekTests[] =;

VP9_INSTANTIATE_TEST_SUITE();

const DecodeParam kMultiThreadedVP9InvalidFileTests[] =;

INSTANTIATE_TEST_SUITE_P();
#endif  // CONFIG_VP9_DECODER
}  // namespace