Restructuring and adding dummy unit test target.
Empty test added to get code coverage recorded. Review URL: http://webrtc-codereview.appspot.com/267019 git-svn-id: http://webrtc.googlecode.com/svn/trunk@966 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
b72268e147
commit
cc2ecb3c2e
@ -14,7 +14,7 @@ include $(MY_WEBRTC_ROOT_PATH)/src/common_audio/signal_processing/Android.mk
|
||||
include $(MY_WEBRTC_ROOT_PATH)/src/common_audio/vad/Android.mk
|
||||
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_coding/neteq/Android.mk
|
||||
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_coding/codecs/cng/Android.mk
|
||||
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_coding/codecs/G711/main/source/Android.mk
|
||||
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_coding/codecs/g711/Android.mk
|
||||
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_coding/codecs/G722/main/source/Android.mk
|
||||
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_coding/codecs/pcm16b/Android.mk
|
||||
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_coding/codecs/ilbc/Android.mk
|
||||
|
@ -10,7 +10,7 @@ LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
include $(LOCAL_PATH)/../../../../../../../android-webrtc.mk
|
||||
include $(LOCAL_PATH)/../../../../../android-webrtc.mk
|
||||
|
||||
LOCAL_ARM_MODE := arm
|
||||
LOCAL_MODULE_CLASS := STATIC_LIBRARIES
|
||||
@ -26,8 +26,8 @@ LOCAL_CFLAGS := \
|
||||
$(MY_WEBRTC_COMMON_DEFS)
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
$(LOCAL_PATH)/../interface \
|
||||
$(LOCAL_PATH)/../../../../../..
|
||||
$(LOCAL_PATH)/include \
|
||||
$(LOCAL_PATH)/../../../..
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libcutils \
|
@ -12,15 +12,15 @@
|
||||
'target_name': 'G711',
|
||||
'type': '<(library)',
|
||||
'include_dirs': [
|
||||
'../interface',
|
||||
'include',
|
||||
],
|
||||
'direct_dependent_settings': {
|
||||
'include_dirs': [
|
||||
'../interface',
|
||||
'include',
|
||||
],
|
||||
},
|
||||
'sources': [
|
||||
'../interface/g711_interface.h',
|
||||
'include/g711_interface.h',
|
||||
'g711_interface.c',
|
||||
'g711.c',
|
||||
'g711.h',
|
||||
@ -28,9 +28,20 @@
|
||||
},
|
||||
], # targets
|
||||
# Exclude the test target when building with chromium.
|
||||
'conditions': [
|
||||
'conditions': [
|
||||
['build_with_chromium==0', {
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'g711_unittests',
|
||||
'type': 'executable',
|
||||
'dependencies': [
|
||||
'G711',
|
||||
'<(webrtc_root)/../test/test.gyp:test_support_main',
|
||||
],
|
||||
'sources': [
|
||||
'g711_unittest.cc',
|
||||
],
|
||||
},
|
||||
{
|
||||
'target_name': 'g711_test',
|
||||
'type': 'executable',
|
||||
@ -38,15 +49,8 @@
|
||||
'G711',
|
||||
],
|
||||
'sources': [
|
||||
'../testG711/testG711.cpp',
|
||||
'test/testG711.cpp',
|
||||
],
|
||||
# 'conditions': [
|
||||
# ['OS=="linux"', {
|
||||
# 'cflags': [
|
||||
# '-fexceptions', # enable exceptions
|
||||
# ],
|
||||
# }],
|
||||
# ],
|
||||
},
|
||||
], # targets
|
||||
}], # build_with_chromium
|
18
src/modules/audio_coding/codecs/g711/g711_unittest.cc
Normal file
18
src/modules/audio_coding/codecs/g711/g711_unittest.cc
Normal file
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Copyright (c) 2011 The WebRTC 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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Empty test just to get code coverage metrics for this dir.
|
||||
*/
|
||||
#include "g711_interface.h"
|
||||
|
||||
|
||||
|
||||
|
@ -42,7 +42,7 @@ LOCAL_CFLAGS := \
|
||||
LOCAL_C_INCLUDES := \
|
||||
$(LOCAL_PATH)/../interface \
|
||||
$(LOCAL_PATH)/../../codecs/cng/include \
|
||||
$(LOCAL_PATH)/../../codecs/G711/main/interface \
|
||||
$(LOCAL_PATH)/../../codecs/g711/include \
|
||||
$(LOCAL_PATH)/../../codecs/G722/main/interface \
|
||||
$(LOCAL_PATH)/../../codecs/ilbc/interface \
|
||||
$(LOCAL_PATH)/../../codecs/iSAC/main/interface \
|
||||
|
@ -10,7 +10,7 @@
|
||||
'includes': [
|
||||
'../build/common.gypi',
|
||||
'audio_coding/codecs/cng/cng.gypi',
|
||||
'audio_coding/codecs/G711/main/source/g711.gypi',
|
||||
'audio_coding/codecs/g711/g711.gypi',
|
||||
'audio_coding/codecs/G722/main/source/g722.gypi',
|
||||
'audio_coding/codecs/ilbc/ilbc.gypi',
|
||||
'audio_coding/codecs/iSAC/main/source/isac.gypi',
|
||||
|
@ -17,7 +17,7 @@ include $(MY_WEBRTC_ROOT_PATH)/$(MY_WEBRTC_SRC_PATH)/src/common_audio/signal_pro
|
||||
include $(MY_WEBRTC_ROOT_PATH)/$(MY_WEBRTC_SRC_PATH)/src/common_audio/vad/Android.mk
|
||||
include $(MY_WEBRTC_ROOT_PATH)/$(MY_WEBRTC_SRC_PATH)/src/modules/audio_coding/NetEQ/main/source/Android.mk
|
||||
include $(MY_WEBRTC_ROOT_PATH)/$(MY_WEBRTC_SRC_PATH)/src/modules/audio_coding/codecs/cng/Android.mk
|
||||
include $(MY_WEBRTC_ROOT_PATH)/$(MY_WEBRTC_SRC_PATH)/src/modules/audio_coding/codecs/G711/main/source/Android.mk
|
||||
include $(MY_WEBRTC_ROOT_PATH)/$(MY_WEBRTC_SRC_PATH)/src/modules/audio_coding/codecs/g711/Android.mk
|
||||
include $(MY_WEBRTC_ROOT_PATH)/$(MY_WEBRTC_SRC_PATH)/src/modules/audio_coding/codecs/G722/main/source/Android.mk
|
||||
include $(MY_WEBRTC_ROOT_PATH)/$(MY_WEBRTC_SRC_PATH)/src/modules/audio_coding/codecs/pcm16b/Android.mk
|
||||
include $(MY_WEBRTC_ROOT_PATH)/$(MY_WEBRTC_SRC_PATH)/src/modules/audio_coding/codecs/iLBC/main/source/Android.mk
|
||||
|
Loading…
x
Reference in New Issue
Block a user