chromium/media/base/vector_math_unittest.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include <cmath>
#include <memory>

#include "base/cpu.h"
#include "base/memory/aligned_memory.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringize_macros.h"
#include "build/build_config.h"
#include "media/base/vector_math.h"
#include "media/base/vector_math_testing.h"
#include "testing/gtest/include/gtest/gtest.h"

fill;

namespace media {

// Default test values.
static const float kScale =;
static const float kInputFillValue =;
static const float kOutputFillValue =;
static const int kVectorSize =;

class VectorMathTest : public testing::Test {};

// Ensure each optimized vector_math::FMAC() method returns the same value.
TEST_F(VectorMathTest, FMAC) {}

// Ensure each optimized vector_math::FMUL() method returns the same value.
TEST_F(VectorMathTest, FMUL) {}

class EWMATestScenario {};

VectorMathEWMAAndMaxPowerTest;

TEST_P(VectorMathEWMAAndMaxPowerTest, Correctness) {}

static const float kZeros[] =;

static const float kOnes[] =;

static const float kCheckerboard[] =;

static const float kInverseCheckerboard[] =;

INSTANTIATE_TEST_SUITE_P();

}  // namespace media