mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-06 16:56:55 +08:00
BUG=none TEST=none Review URL: https://webrtc-codereview.appspot.com/358008 git-svn-id: http://libyuv.googlecode.com/svn/trunk@153 16f28f9a-4ce2-e073-06de-1de4eb20be90
29 lines
784 B
C++
29 lines
784 B
C++
/*
|
|
* Copyright (c) 2012 The LibYuv 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 "unit_test.h"
|
|
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
#include "libyuv/basic_types.h"
|
|
#include "libyuv/cpu_id.h"
|
|
|
|
namespace libyuv {
|
|
|
|
extern "C" int ArmCpuCaps(const char* cpuinfoname);
|
|
|
|
TEST_F(libyuvTest, TestLinuxNeon) {
|
|
EXPECT_EQ(0,ArmCpuCaps("testdata/arm_v7.txt"));
|
|
EXPECT_NE(kCpuHasNEON,ArmCpuCaps("testdata/tegra3.txt"));
|
|
}
|
|
|
|
} // namespace libyuv
|