summaryrefslogtreecommitdiff
path: root/serial_link/tests
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2016-03-12 19:35:09 +0200
committerFred Sundvik <fsundvik@gmail.com>2016-03-12 19:35:09 +0200
commit11bd4ba0dd39654318bd0a3ae495656c2b2187bb (patch)
tree2f14db1331b35a61877ee481e3a2779cb00ac542 /serial_link/tests
parent168c5b679f23c25263623f0f8f2b340543cf2140 (diff)
Remote object callable from many places
Change init_transport to add_remote_objects, so that it can be called many times from different places.
Diffstat (limited to 'serial_link/tests')
-rw-r--r--serial_link/tests/transport_tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/serial_link/tests/transport_tests.c b/serial_link/tests/transport_tests.c
index 3e9bffdfa7..02a7a10425 100644
--- a/serial_link/tests/transport_tests.c
+++ b/serial_link/tests/transport_tests.c
@@ -53,7 +53,7 @@ MASTER_TO_ALL_SLAVES_OBJECT(master_to_slave, test_object1_t);
MASTER_TO_SINGLE_SLAVE_OBJECT(master_to_single_slave, test_object1_t);
SLAVE_TO_MASTER_OBJECT(slave_to_master, test_object1_t);
-remote_object_t* test_remote_objects[] = {
+static remote_object_t* test_remote_objects[] = {
REMOTE_OBJECT(master_to_slave),
REMOTE_OBJECT(master_to_single_slave),
REMOTE_OBJECT(slave_to_master),
@@ -61,7 +61,7 @@ remote_object_t* test_remote_objects[] = {
Describe(Transport);
BeforeEach(Transport) {
- init_transport(test_remote_objects, sizeof(test_remote_objects) / sizeof(remote_object_t*));
+ add_remote_objects(test_remote_objects, sizeof(test_remote_objects) / sizeof(remote_object_t*));
sent_data_size = 0;
}
AfterEach(Transport) {}