Skip to content

Commit

Permalink
Move trunk/test/data -> trunk/data
Browse files Browse the repository at this point in the history
BUG=
TEST=all trybot test failures passed locally

Review URL: https://webrtc-codereview.appspot.com/583007

git-svn-id: http://webrtc.googlecode.com/svn/trunk@2280 4adac7df-926f-26a2-2b94-8c16560cd09d
  • Loading branch information
andrew@webrtc.org committed May 23, 2012
1 parent 1484ac0 commit 9dc45da
Show file tree
Hide file tree
Showing 116 changed files with 39 additions and 39 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/common_video/jpeg/jpeg_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class JpegTest: public testing::Test {
protected:
JpegTest()
: input_filename_(webrtc::test::ProjectRootPath() +
"test/data/common_video/jpeg/webrtc_logo.jpg"),
"data/common_video/jpeg/webrtc_logo.jpg"),
decoded_filename_(webrtc::test::OutputPath() + "TestJpegDec.yuv"),
encoded_filename_(webrtc::test::OutputPath() + "TestJpegEnc.jpg"),
encoded_buffer_(NULL) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This script can be used to verify the bit exactness of iLBC fixed-point version 1.0.6
#

INP=../../../../../../../test/data/audio_coding
INP=../../../../../../../data/audio_coding
EXEP=../../../../../../../out/Release
OUTP=./GeneratedFiles
mkdir ./GeneratedFiles
Expand Down
4 changes: 2 additions & 2 deletions src/modules/audio_coding/main/test/APITest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ APITest::SetUp()
printf("Hit enter to accept the default values indicated in []\n\n");

//--- Input A
strcpy(fileName, "./test/data/audio_coding/testfile32kHz.pcm");
strcpy(fileName, "./data/audio_coding/testfile32kHz.pcm");
frequencyHz = 32000;
printf("Enter input file at side A [%s]: ", fileName);
PCMFile::ChooseFile(fileName, 499, &frequencyHz);
Expand All @@ -278,7 +278,7 @@ APITest::SetUp()
_outFileA.Open(fileName, frequencyHz, "wb");

//--- Input B
strcpy(fileName, "./test/data/audio_coding/testfile32kHz.pcm");
strcpy(fileName, "./data/audio_coding/testfile32kHz.pcm");
printf("\n\nEnter input file at side B [%s]: ", fileName);
PCMFile::ChooseFile(fileName, 499, &frequencyHz);
_inFileB.Open(fileName, frequencyHz, "rb", true);
Expand Down
6 changes: 3 additions & 3 deletions src/modules/audio_coding/main/test/EncodeDecodeTest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ void Sender::Setup(AudioCodingModule *acm, RTPStream *rtpStream) {
// Set the codec, input file, and parameters for the current test.
codecNo = codeId;
// Use same input file for now.
char fileName[] = "./test/data/audio_coding/testfile32kHz.pcm";
char fileName[] = "./data/audio_coding/testfile32kHz.pcm";
_pcmFile.Open(fileName, 32000, "rb");
} else if (testMode == 0) {
// Set the codec, input file, and parameters for the current test.
codecNo = codeId;
acm->Codec(codecNo, sendCodec);
// Use same input file for now.
char fileName[] = "./test/data/audio_coding/testfile32kHz.pcm";
char fileName[] = "./data/audio_coding/testfile32kHz.pcm";
_pcmFile.Open(fileName, 32000, "rb");
} else {
printf("List of supported codec.\n");
Expand All @@ -80,7 +80,7 @@ void Sender::Setup(AudioCodingModule *acm, RTPStream *rtpStream) {
}
printf("Choose your codec:");
ASSERT_GT(scanf("%d", &codecNo), 0);
char fileName[] = "./test/data/audio_coding/testfile32kHz.pcm";
char fileName[] = "./data/audio_coding/testfile32kHz.pcm";
_pcmFile.Open(fileName, 32000, "rb");
}

Expand Down
2 changes: 1 addition & 1 deletion src/modules/audio_coding/main/test/SpatialAudio.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ SpatialAudio::Setup()
char audioFileName[MAX_FILE_NAME_LENGTH_BYTE];
WebRtc_UWord16 sampFreqHz = 32000;

strncpy(audioFileName, "./test/data/audio_coding/testfile32kHz.pcm",
strncpy(audioFileName, "./data/audio_coding/testfile32kHz.pcm",
MAX_FILE_NAME_LENGTH_BYTE - 1);
if(_testMode == 1)
{
Expand Down
2 changes: 1 addition & 1 deletion src/modules/audio_coding/main/test/TestAllCodecs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ TestAllCodecs::~TestAllCodecs()
void TestAllCodecs::Perform()
{

char file[] = "./test/data/audio_coding/testfile32kHz.pcm";
char file[] = "./data/audio_coding/testfile32kHz.pcm";
_inFileA.Open(file, 32000, "rb");

if(_testMode == 0)
Expand Down
2 changes: 1 addition & 1 deletion src/modules/audio_coding/main/test/TestFEC.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void TestFEC::Perform()
WEBRTC_TRACE(kTraceStateInfo, kTraceAudioCoding, -1,
"---------- TestFEC ----------");
}
char fileName[] = "./test/data/audio_coding/testfile32kHz.pcm";
char fileName[] = "./data/audio_coding/testfile32kHz.pcm";
_inFileA.Open(fileName, 32000, "rb");


Expand Down
4 changes: 2 additions & 2 deletions src/modules/audio_coding/main/test/TestStereo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ void TestStereo::Perform() {
"---------- TestStereo ----------");
}

strcpy(file_name_stereo, "./test/data/audio_coding/teststereo32kHz.pcm");
strcpy(file_name_mono, "./test/data/audio_coding/testfile32kHz.pcm");
strcpy(file_name_stereo, "./data/audio_coding/teststereo32kHz.pcm");
strcpy(file_name_mono, "./data/audio_coding/testfile32kHz.pcm");
frequency_hz = 32000;

in_file_stereo_ = new PCMFile();
Expand Down
2 changes: 1 addition & 1 deletion src/modules/audio_coding/main/test/TestVADDTX.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void TestVADDTX::Perform()
WEBRTC_TRACE(webrtc::kTraceStateInfo, webrtc::kTraceAudioCoding, -1,
"---------- TestVADDTX ----------");
}
char fileName[] = "./test/data/audio_coding/testfile32kHz.pcm";
char fileName[] = "./data/audio_coding/testfile32kHz.pcm";
_inFileA.Open(fileName, 32000, "rb");

_acmA = AudioCodingModule::Create(0);
Expand Down
8 changes: 4 additions & 4 deletions src/modules/audio_coding/main/test/TwoWayCommunication.cc
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ WebRtc_Word16 TwoWayCommunication::SetUp()
WebRtc_UWord16 frequencyHz;

//--- Input A
strcpy(fileName, "./test/data/audio_coding/testfile32kHz.pcm");
strcpy(fileName, "./data/audio_coding/testfile32kHz.pcm");
frequencyHz = 32000;
printf("Enter input file at side A [%s]: ", fileName);
ChooseFile(fileName, 499, &frequencyHz);
Expand All @@ -223,7 +223,7 @@ WebRtc_Word16 TwoWayCommunication::SetUp()
_outFileRefA.Open(refFileName, frequencyHz, "wb");

//--- Input B
strcpy(fileName, "./test/data/audio_coding/testfile32kHz.pcm");
strcpy(fileName, "./data/audio_coding/testfile32kHz.pcm");
frequencyHz = 32000;
printf("\n\nEnter input file at side B [%s]: ", fileName);
ChooseFile(fileName, 499, &frequencyHz);
Expand Down Expand Up @@ -314,7 +314,7 @@ WebRtc_Word16 TwoWayCommunication::SetUpAutotest()


//--- Input A
strcpy(fileName, "./test/data/audio_coding/testfile32kHz.pcm");
strcpy(fileName, "./data/audio_coding/testfile32kHz.pcm");
frequencyHz = 16000;
_inFileA.Open(fileName, frequencyHz, "rb");

Expand All @@ -328,7 +328,7 @@ WebRtc_Word16 TwoWayCommunication::SetUpAutotest()
_outFileRefA.Open(refFileName, frequencyHz, "wb");

//--- Input B
strcpy(fileName, "./test/data/audio_coding/testfile32kHz.pcm");
strcpy(fileName, "./data/audio_coding/testfile32kHz.pcm");
frequencyHz = 16000;
_inFileB.Open(fileName, frequencyHz, "rb");

Expand Down
4 changes: 2 additions & 2 deletions src/modules/audio_coding/main/test/iSACTest.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
* Copyright (c) 2012 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
Expand Down Expand Up @@ -184,7 +184,7 @@ ISACTest::Setup()
CHECK_ERROR(_acmB->RegisterTransportCallback(_channel_B2A));
_channel_B2A->RegisterReceiverACM(_acmA);

strncpy(_fileNameSWB, "./test/data/audio_coding/testfile32kHz.pcm",
strncpy(_fileNameSWB, "./data/audio_coding/testfile32kHz.pcm",
MAX_FILE_NAME_LENGTH_BYTE);

_acmB->RegisterSendCodec(_paramISAC16kHz);
Expand Down
2 changes: 1 addition & 1 deletion src/modules/audio_device/main/test/func_test_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ WebRtc_Word32 AudioTransportImpl::NeedMorePlayData(

FuncTestManager::FuncTestManager() :
_resourcePath(webrtc::test::ProjectRootPath() +
"test/data/audio_device/"),
"data/audio_device/"),
_processThread(NULL),
_audioDevice(NULL),
_audioEventObserver(NULL),
Expand Down
2 changes: 1 addition & 1 deletion src/modules/audio_processing/test/unit_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class ApmTest : public ::testing::Test {
ApmTest::ApmTest()
: output_path_(webrtc::test::OutputPath()),
ref_path_(webrtc::test::ProjectRootPath() +
"test/data/audio_processing/"),
"data/audio_processing/"),
#if defined(WEBRTC_AUDIOPROC_FIXED_PROFILE)
ref_filename_(ref_path_ + "output_data_fixed.pb"),
#elif defined(WEBRTC_AUDIOPROC_FLOAT_PROFILE)
Expand Down
2 changes: 1 addition & 1 deletion src/modules/media_file/source/media_file_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ TEST_F(MediaFileTest, StartPlayingAudioFileWithoutError) {
// TODO(leozwang): Use hard coded filename here, we want to
// loop through all audio files in future
const std::string audio_file = webrtc::test::ProjectRootPath() +
"test/data/voice_engine/audio_tiny48.wav";
"data/voice_engine/audio_tiny48.wav";
ASSERT_EQ(0, media_file_->StartPlayingAudioFile(
audio_file.c_str(),
0,
Expand Down
4 changes: 2 additions & 2 deletions src/voice_engine/main/test/auto_test/resource_manager.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
* Copyright (c) 2012 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
Expand All @@ -22,7 +22,7 @@ ResourceManager::ResourceManager() {
long_audio_file_path_ = "";
} else {
long_audio_file_path_ =
resource_path + "test/data/voice_engine/" + filename;
resource_path + "data/voice_engine/" + filename;
}
#endif
}
Expand Down
4 changes: 2 additions & 2 deletions src/voice_engine/main/test/cmd_test/voe_cmd_test.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
* Copyright (c) 2012 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
Expand Down Expand Up @@ -253,7 +253,7 @@ void RunTest(std::string out_path) {
// Fall back to the current directory.
resource_path = "./";
} else {
resource_path += "test/data/voice_engine/";
resource_path += "data/voice_engine/";
}
#endif
const std::string audio_filename = resource_path + "audio_long16.pcm";
Expand Down
26 changes: 13 additions & 13 deletions src/voice_engine/main/test/win_test/WinTestDlg.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2304,7 +2304,7 @@ void CWinTestDlg::OnBnClickedCheckExtTrans2()
void CWinTestDlg::OnBnClickedCheckPlayFileIn1()
{
// File path is relative to the location of 'voice_engine.gyp'.
const char micFile[] = "../test/data/voice_engine/audio_short16.pcm";
const char micFile[] = "../data/voice_engine/audio_short16.pcm";

int ret(0);
int channel = GetDlgItemInt(IDC_EDIT_1);
Expand Down Expand Up @@ -2339,7 +2339,7 @@ void CWinTestDlg::OnBnClickedCheckPlayFileIn1()
void CWinTestDlg::OnBnClickedCheckPlayFileIn2()
{
// File path is relative to the location of 'voice_engine.gyp'.
const char micFile[] = "../test/data/voice_engine/audio_long16.pcm";
const char micFile[] = "../data/voice_engine/audio_long16.pcm";

int ret(0);
int channel = GetDlgItemInt(IDC_EDIT_2);
Expand Down Expand Up @@ -2382,14 +2382,14 @@ void CWinTestDlg::OnBnClickedCheckPlayFileOut1()
{kFileFormatWavFile},
{kFileFormatWavFile}};
// File path is relative to the location of 'voice_engine.gyp'.
const char spkrFiles[8][64] = {{"../../test/data/voice_engine/audio_short16.pcm"},
{"../../test/data/voice_engine/audio_tiny8.wav"},
{"../../test/data/voice_engine/audio_tiny11.wav"},
{"../../test/data/voice_engine/audio_tiny16.wav"},
{"../../test/data/voice_engine/audio_tiny22.wav"},
{"../../test/data/voice_engine/audio_tiny32.wav"},
{"../../test/data/voice_engine/audio_tiny44.wav"},
{"../../test/data/voice_engine/audio_tiny48.wav"}};
const char spkrFiles[8][64] = {{"../../data/voice_engine/audio_short16.pcm"},
{"../../data/voice_engine/audio_tiny8.wav"},
{"../../data/voice_engine/audio_tiny11.wav"},
{"../../data/voice_engine/audio_tiny16.wav"},
{"../../data/voice_engine/audio_tiny22.wav"},
{"../../data/voice_engine/audio_tiny32.wav"},
{"../../data/voice_engine/audio_tiny44.wav"},
{"../../data/voice_engine/audio_tiny48.wav"}};
int ret(0);
int channel = GetDlgItemInt(IDC_EDIT_1);
CButton* button = (CButton*)GetDlgItem(IDC_CHECK_PLAY_FILE_OUT_1);
Expand Down Expand Up @@ -2434,7 +2434,7 @@ void CWinTestDlg::OnBnClickedCheckPlayFileOut1()
void CWinTestDlg::OnBnClickedCheckPlayFileOut2()
{
// File path is relative to the location of 'voice_engine.gyp'.
const char spkrFile[] = "../test/data/voice_engine/audio_long16.pcm";
const char spkrFile[] = "../data/voice_engine/audio_long16.pcm";

int ret(0);
int channel = GetDlgItemInt(IDC_EDIT_2);
Expand Down Expand Up @@ -3095,8 +3095,8 @@ void CWinTestDlg::OnBnClickedCheckNs1()
void CWinTestDlg::OnBnClickedCheckPlayFileIn()
{
// File path is relative to the location of 'voice_engine.gyp'.
const char micFile[] = "../../test/data/voice_engine/audio_short16.pcm";
// const char micFile[] = "../../test/data/voice_engine/audio_long16noise.pcm";
const char micFile[] = "../../data/voice_engine/audio_short16.pcm";
// const char micFile[] = "../../data/voice_engine/audio_long16noise.pcm";

int channel(-1);
CButton* buttonExtTrans = (CButton*)GetDlgItem(IDC_CHECK_PLAY_FILE_IN);
Expand Down

0 comments on commit 9dc45da

Please sign in to comment.