summaryrefslogtreecommitdiff
path: root/cesar/cp2/cco/bw/test
diff options
context:
space:
mode:
authorboure2008-05-29 14:26:05 +0000
committerboure2008-05-29 14:26:05 +0000
commit176f9e485d1f0ec8cd9e65de5825a3a2a65a6d7c (patch)
tree8727f7ab45d54237fea2bb29786be2230173a5fe /cesar/cp2/cco/bw/test
parent7cb8e5772a49e381af98291e42fe3ee857b4161a (diff)
Modify variables name to suit coding standards
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@2158 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/cp2/cco/bw/test')
-rw-r--r--cesar/cp2/cco/bw/test/Makefile6
-rw-r--r--cesar/cp2/cco/bw/test/src/bw_test.c3
-rw-r--r--cesar/cp2/cco/bw/test/src/conn_stub.c75
3 files changed, 5 insertions, 79 deletions
diff --git a/cesar/cp2/cco/bw/test/Makefile b/cesar/cp2/cco/bw/test/Makefile
index 6f228d08bc..e29f428d7b 100644
--- a/cesar/cp2/cco/bw/test/Makefile
+++ b/cesar/cp2/cco/bw/test/Makefile
@@ -7,10 +7,10 @@ TARGET_PROGRAMS = schedules bw_prio_heap_test bw_test
schedules_SOURCES = bw_list_alloc_test.c
schedules_MODULES = lib cp2/cco/bw
-bw_prio_heap_test_SOURCES = bw_prio_heap_test.c conn_stub.c
-bw_prio_heap_test_MODULES = lib cp2/cco/bw cp2/conn
+bw_prio_heap_test_SOURCES = bw_prio_heap_test.c
+bw_prio_heap_test_MODULES = lib cp2/cco/bw cp2/conn
-bw_test_SOURCES = bw_test.c conn_stub.c
+bw_test_SOURCES = bw_test.c
bw_test_MODULES = lib cp2/cco/bw cp2/conn
include $(BASE)/common/make/top.mk
diff --git a/cesar/cp2/cco/bw/test/src/bw_test.c b/cesar/cp2/cco/bw/test/src/bw_test.c
index 30528b8aa6..ecea844c5d 100644
--- a/cesar/cp2/cco/bw/test/src/bw_test.c
+++ b/cesar/cp2/cco/bw/test/src/bw_test.c
@@ -38,7 +38,7 @@ test_case_bw_init_new_sched (test_t test)
cp_t cp;
cp_cco_bw_new_sched(&cp);
- cp_cco_bw_alloc_conn(&cp, 8);
+
test_case_begin(test, "\nInit new schedule");
test_begin(test,"Init new schedule")
@@ -81,6 +81,7 @@ main (void){
test_init(test, 0, NULL);
test_case_bw_init_new_sched (test);
+ test_case_bw_add_conn (test);
test_result (test);
HAL_PLATFORM_EXIT (test_nb_failed (test) == 0 ? 0 : 1);
diff --git a/cesar/cp2/cco/bw/test/src/conn_stub.c b/cesar/cp2/cco/bw/test/src/conn_stub.c
deleted file mode 100644
index 1ce7735e1d..0000000000
--- a/cesar/cp2/cco/bw/test/src/conn_stub.c
+++ /dev/null
@@ -1,75 +0,0 @@
- /* Cesar project {{{
- *
- * Copyright (C) 2008 Spidcom
- *
- * <<<Licence>>>
- *
- * }}} */
-/**
- * \file conn_stub.c
- * \brief conn stub
- * \ingroup cp2_conn
- *
- * Control the schedule of the becon period
- */
-#include "common/std.h"
-#include "cp2/cp.h"
-#include "cp2/inc/context.h"
-#include "cp2/conn/conn.h"
-#include "cp2/conn/link.h"
-#include "lib/blk.h"
-
-cp_conn_t*
-cp_conn_get_conn(cp_t *ctx, u8 cid)
-{
- cp_conn_t *conn;
- conn = blk_alloc();
- conn->cid = cid;
- conn->conn_state = OUT;
- conn->flid = cp_link_init();
- return conn;
-}
-/**
- * initialise the memory needed buy the link
- * \return \todo fill this
- *
- */
-cp_link_t*
-cp_link_init (void)
-{
- cp_link_t link;
- cp_link_ble_interval_t table_ble[10];
- blk_t *tmp_blk,*last_blk;
-
- int i=0;
- link.cinfo = blk_alloc();
-
- link.ble = blk_alloc_desc();
- last_blk = blk_alloc_desc();
- link.ble = blk_alloc_desc_range(10, &last_blk);
- tmp_blk = link.ble;
-
- for(i=0;i<10;i++)
- {
- table_ble[i].ble=i*10;
- table_ble[i].ble=i*100;
-
- (cp_link_ble_interval_t*)tmp_blk->data = &table_ble[i];
- tmp_blk = tmp_blk->next;
- }
- dbg_assert(blk_check_memory);
- return NULL;
-}
-
-/**
- * del a connection regarding to its CID.
- * \param ctx conn context.
- * \param lid Connection identifier
- *
- */
-void
-cp_link_uninit (cp_link_t *link)
-{
-}
-
-