Commit 3660f2e5 authored by frkoenig@google.com's avatar frkoenig@google.com

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
parent 6123c60b
......@@ -7,6 +7,9 @@
# be found in the AUTHORS file in the root of the source tree.
{
'includes': [
'build/common.gypi',
],
'targets': [
{
'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
}
......
/*
* 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();
}
\ No newline at end of file
/*
* 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_
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment