mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-06 16:56:55 +08:00
empty gtest.
Placeholder for unit tests. No tests currently defined. Review URL: http://webrtc-codereview.appspot.com/197001 git-svn-id: http://libyuv.googlecode.com/svn/trunk@11 16f28f9a-4ce2-e073-06de-1de4eb20be90
This commit is contained in:
parent
6123c60bce
commit
3660f2e56a
32
libyuv.gyp
32
libyuv.gyp
@ -7,6 +7,9 @@
|
|||||||
# be found in the AUTHORS file in the root of the source tree.
|
# be found in the AUTHORS file in the root of the source tree.
|
||||||
|
|
||||||
{
|
{
|
||||||
|
'includes': [
|
||||||
|
'build/common.gypi',
|
||||||
|
],
|
||||||
'targets': [
|
'targets': [
|
||||||
{
|
{
|
||||||
'target_name': 'libyuv',
|
'target_name': 'libyuv',
|
||||||
@ -46,6 +49,35 @@
|
|||||||
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'target_name': 'libyuvUnitTest',
|
||||||
|
'type': 'executable',
|
||||||
|
'dependencies': [
|
||||||
|
'libyuv',
|
||||||
|
# The tests are based on gtest
|
||||||
|
'testing/gtest.gyp:gtest',
|
||||||
|
'testing/gtest.gyp:gtest_main',
|
||||||
|
],
|
||||||
|
'sources': [
|
||||||
|
|
||||||
|
# headers
|
||||||
|
'unit_test/unit_test.h',
|
||||||
|
|
||||||
|
# sources
|
||||||
|
'unit_test/unit_test.cc',
|
||||||
|
|
||||||
|
], # source
|
||||||
|
|
||||||
|
'conditions': [
|
||||||
|
|
||||||
|
['OS=="linux"', {
|
||||||
|
'cflags': [
|
||||||
|
'-fexceptions',
|
||||||
|
],
|
||||||
|
}],
|
||||||
|
|
||||||
|
], # conditions
|
||||||
|
},
|
||||||
], # targets
|
], # targets
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
39
unit_test/unit_test.cc
Normal file
39
unit_test/unit_test.cc
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2011 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 <cstring>
|
||||||
|
#include "unit_test.h"
|
||||||
|
|
||||||
|
class libyuvEnvironment : public ::testing::Environment {
|
||||||
|
public:
|
||||||
|
virtual void SetUp() {
|
||||||
|
}
|
||||||
|
|
||||||
|
virtual void TearDown() {
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
libyuvTest::libyuvTest()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void libyuvTest::SetUp() {
|
||||||
|
}
|
||||||
|
|
||||||
|
void libyuvTest::TearDown() {
|
||||||
|
}
|
||||||
|
|
||||||
|
int main(int argc, char** argv) {
|
||||||
|
::testing::InitGoogleTest(&argc, argv);
|
||||||
|
libyuvEnvironment* env = new libyuvEnvironment;
|
||||||
|
::testing::AddGlobalTestEnvironment(env);
|
||||||
|
|
||||||
|
return RUN_ALL_TESTS();
|
||||||
|
}
|
||||||
23
unit_test/unit_test.h
Normal file
23
unit_test/unit_test.h
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2011 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef UINIT_TEST_H_
|
||||||
|
#define UINIT_TEST_H_
|
||||||
|
|
||||||
|
#include <gtest/gtest.h>
|
||||||
|
|
||||||
|
class libyuvTest : public ::testing::Test {
|
||||||
|
protected:
|
||||||
|
libyuvTest();
|
||||||
|
virtual void SetUp();
|
||||||
|
virtual void TearDown();
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // UNIT_TEST_H_
|
||||||
Loading…
x
Reference in New Issue
Block a user