Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Unified Diff: srtp/test/rdbx_driver.c

Issue 1098043003: Update libsrtp to 1.5.2 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libsrtp@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « srtp/srtp/srtp.c ('k') | srtp/test/rtp.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: srtp/test/rdbx_driver.c
diff --git a/srtp/test/rdbx_driver.c b/srtp/test/rdbx_driver.c
index 37a3c8535478da6a61022686ca840749093bf931..90bd72e7afb4d66d18862884e7bb426d3ebb3b49 100644
--- a/srtp/test/rdbx_driver.c
+++ b/srtp/test/rdbx_driver.c
@@ -242,7 +242,7 @@ test_replay_dbx(int num_trials, unsigned long ws) {
* test sequential insertion
*/
printf("\ttesting sequential insertion...");
- for (idx=0; idx < num_trials; idx++) {
+ for (idx=0; (int) idx < num_trials; idx++) {
status = rdbx_check_add(&rdbx, idx);
if (status)
return status;
@@ -261,7 +261,7 @@ test_replay_dbx(int num_trials, unsigned long ws) {
printf("warning: no false positive tests performed\n");
}
printf("\ttesting for false positives...");
- for (idx=0; idx < num_fp_trials; idx++) {
+ for (idx=0; (int) idx < num_fp_trials; idx++) {
status = rdbx_check_expect_failure(&rdbx, idx);
if (status)
return status;
@@ -285,7 +285,7 @@ test_replay_dbx(int num_trials, unsigned long ws) {
ut_init(&utc);
printf("\ttesting non-sequential insertion...");
- for (idx=0; idx < num_trials; idx++) {
+ for (idx=0; (int) idx < num_trials; idx++) {
ircvd = ut_next_index(&utc);
status = rdbx_check_add_unordered(&rdbx, ircvd);
if (status)
@@ -309,7 +309,7 @@ test_replay_dbx(int num_trials, unsigned long ws) {
* check for false positives for each insertion.
*/
printf("\ttesting insertion with large gaps...");
- for (idx=0, ircvd=0; idx < num_trials; idx++, ircvd += (1 << (rand() % 12))) {
+ for (idx=0, ircvd=0; (int) idx < num_trials; idx++, ircvd += (1 << (rand() % 12))) {
status = rdbx_check_add(&rdbx, ircvd);
if (status)
return status;
@@ -345,7 +345,7 @@ rdbx_check_adds_per_second(int num_trials, unsigned long ws) {
failures = 0;
timer = clock();
- for(i=0; i < num_trials; i++) {
+ for(i=0; (int) i < num_trials; i++) {
delta = index_guess(&rdbx.index, &est, i);
« no previous file with comments | « srtp/srtp/srtp.c ('k') | srtp/test/rtp.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698