Revision f3480090 som/Tests/chunkidset_test.c

View differences:

som/Tests/chunkidset_test.c
25 25
  int res;
26 26

  
27 27
  res = chunkID_set_add_chunk(c, n);
28
  printf("Add %d ---> Result=%d\tSize=%d\n", n, res, chunkID_size(c));
28
  printf("Add %d ---> Result=%d\tSize=%d\n", n, res, chunkID_set_size(c));
29 29
}
30 30

  
31 31
static void print_set(struct chunkID_set *c)
32 32
{
33
  int i, size = chunkID_size(c);
33
  int i, size = chunkID_set_size(c);
34 34

  
35 35
  printf("Chunk ID Set size: %d\n", size);
36 36
  printf("Chunks (in priority order): ");
......
56 56
  struct chunkID_set *cset;
57 57

  
58 58
  cset = chunkID_set_init(0);
59
  printf("Chunk ID Set initialised: size is %d\n", chunkID_size(cset));
59
  printf("Chunk ID Set initialised: size is %d\n", chunkID_set_size(cset));
60 60
  populate(cset);
61 61
  print_set(cset);
62 62

  
......
65 65
  check_chunk(cset, 3);
66 66
  check_chunk(cset, 9);
67 67

  
68
  chunkID_clear(cset, 0);
68
  chunkID_set_clear(cset, 0);
69 69
  free(cset);
70 70
}
71 71

  
......
80 80
  populate(cset);
81 81
  res = encodeChunkSignaling(cset, NULL, 0, buff, sizeof(buff));
82 82
  printf("Encoding Result: %d\n", res);
83
  chunkID_clear(cset, 0);
83
  chunkID_set_clear(cset, 0);
84 84
  free(cset);
85 85
  
86 86
  cset1 = decodeChunkSignaling(&meta, &meta_len, buff, res);
87 87
  print_set(cset1);
88
  chunkID_clear(cset1, 0);
88
  chunkID_set_clear(cset1, 0);
89 89
  free(cset1);
90 90
}
91 91

  

Also available in: Unified diff