| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 //TODO(hlundin): Reformat file to meet style guide. | 11 //TODO(hlundin): Reformat file to meet style guide. |
| 12 | 12 |
| 13 /* header includes */ | 13 /* header includes */ |
| 14 #include <float.h> | 14 #include <float.h> |
| 15 #include <stdio.h> | 15 #include <stdio.h> |
| 16 #include <stdlib.h> | 16 #include <stdlib.h> |
| 17 #include <string.h> | 17 #include <string.h> |
| 18 #ifdef WIN32 | 18 #ifdef WIN32 |
| 19 #include <winsock2.h> | 19 #include <winsock2.h> |
| 20 #include <io.h> | 20 #include <io.h> |
| 21 #endif | 21 #endif |
| 22 #ifdef WEBRTC_LINUX | 22 #ifdef WEBRTC_LINUX |
| 23 #include <netinet/in.h> | 23 #include <netinet/in.h> |
| 24 #endif | 24 #endif |
| 25 | 25 |
| 26 #include <assert.h> | 26 #include <assert.h> |
| 27 | 27 |
| 28 #include "testing/gtest/include/gtest/gtest.h" | 28 #include "webrtc/test/gtest.h" |
| 29 #include "webrtc/typedefs.h" | 29 #include "webrtc/typedefs.h" |
| 30 | 30 |
| 31 /*********************/ | 31 /*********************/ |
| 32 /* Misc. definitions */ | 32 /* Misc. definitions */ |
| 33 /*********************/ | 33 /*********************/ |
| 34 | 34 |
| 35 #define FIRSTLINELEN 40 | 35 #define FIRSTLINELEN 40 |
| 36 #define CHECK_NOT_NULL(a) if((a)==NULL){ \ | 36 #define CHECK_NOT_NULL(a) if((a)==NULL){ \ |
| 37 fprintf(stderr,"\n %s \n line: %d \nerror at %s\n",__FILE__,__LINE__,#a ); \ | 37 fprintf(stderr,"\n %s \n line: %d \nerror at %s\n",__FILE__,__LINE__,#a ); \ |
| 38 return(-1);} | 38 return(-1);} |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 | 220 |
| 221 int compare_arr_time(const void *xp, const void *yp) { | 221 int compare_arr_time(const void *xp, const void *yp) { |
| 222 | 222 |
| 223 if(((arr_time *)xp)->time == ((arr_time *)yp)->time) | 223 if(((arr_time *)xp)->time == ((arr_time *)yp)->time) |
| 224 return(0); | 224 return(0); |
| 225 else if(((arr_time *)xp)->time > ((arr_time *)yp)->time) | 225 else if(((arr_time *)xp)->time > ((arr_time *)yp)->time) |
| 226 return(1); | 226 return(1); |
| 227 | 227 |
| 228 return(-1); | 228 return(-1); |
| 229 } | 229 } |
| OLD | NEW |