have the voe_cmd_test compiled with external transport enabled.
Bug=http://code.google.com/p/webrtc/issues/detail?id=43 Test=none Review URL: http://webrtc-codereview.appspot.com/133006 git-svn-id: http://webrtc.googlecode.com/svn/trunk@487 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
e74a9ea303
commit
3266d8d85d
@ -36,7 +36,7 @@
|
||||
// it could be useful in repeat tests.
|
||||
//#define DEBUG
|
||||
|
||||
//#define EXTERNAL_TRANSPORT
|
||||
// #define EXTERNAL_TRANSPORT
|
||||
|
||||
using namespace webrtc;
|
||||
|
||||
@ -204,10 +204,11 @@ void run_test() {
|
||||
}
|
||||
cnt++;
|
||||
|
||||
int j = 0;
|
||||
#ifdef EXTERNAL_TRANSPORT
|
||||
my_transportation ch0transport;
|
||||
printf("Enabling external transport \n");
|
||||
netw->SetExternalTransport(0, true, &ch0transport);
|
||||
netw->RegisterExternalTransport(0, ch0transport);
|
||||
#else
|
||||
char ip[64];
|
||||
#ifdef DEBUG
|
||||
@ -228,7 +229,7 @@ void run_test() {
|
||||
}
|
||||
#endif
|
||||
|
||||
int colons(0), j(0);
|
||||
int colons(0);
|
||||
while (ip[j] != '\0' && j < 64 && !(colons = (ip[j++] == ':')))
|
||||
;
|
||||
if (colons) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user