aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core
diff options
context:
space:
mode:
Diffstat (limited to 'test/core')
-rw-r--r--test/core/profiling/timers_test.c (renamed from test/core/statistics/timers_test.c)8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/core/statistics/timers_test.c b/test/core/profiling/timers_test.c
index efd90ed728..55e59c969e 100644
--- a/test/core/statistics/timers_test.c
+++ b/test/core/profiling/timers_test.c
@@ -31,14 +31,14 @@
*
*/
-#include "src/core/statistics/timers.h"
+#include "src/core/profiling/timers.h"
#include <stdlib.h>
#include "test/core/util/test_config.h"
void test_log_events(int num_seqs) {
int start = 0;
int *state;
- state = calloc(num_seqs,sizeof(state[0]));
+ state = calloc(num_seqs, sizeof(state[0]));
while (start < num_seqs) {
int i;
int row;
@@ -48,10 +48,10 @@ void test_log_events(int num_seqs) {
}
row = rand() % 10; /* how many in a row */
- for (i = start; (i < start+row) && (i < num_seqs); i++) {
+ for (i = start; (i < start + row) && (i < num_seqs); i++) {
int j;
int advance = 1 + rand() % 3; /* how many to advance by */
- for (j=0; j<advance; j++) {
+ for (j = 0; j < advance; j++) {
switch (state[i]) {
case 0:
GRPC_TIMER_MARK(STATE_0, i);