aboutsummaryrefslogtreecommitdiff
path: root/tests/stubs.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2019-12-25 09:45:12 -0800
committerGarrett D'Amore <garrett@damore.org>2019-12-25 09:58:05 -0800
commit440ddf86b3b3b6be47943c5b6408d63b091f2c28 (patch)
tree1dc5a7ed1d8da3e6540f5c8b1f7c75df0a718496 /tests/stubs.h
parent1b71d116b8343d0d67bdb8c303cfecc2773fd0aa (diff)
downloadnng-440ddf86b3b3b6be47943c5b6408d63b091f2c28.tar.gz
nng-440ddf86b3b3b6be47943c5b6408d63b091f2c28.tar.bz2
nng-440ddf86b3b3b6be47943c5b6408d63b091f2c28.zip
fixes #1040 Convert rest of the protocols to new CMake infra
Diffstat (limited to 'tests/stubs.h')
-rw-r--r--tests/stubs.h42
1 files changed, 0 insertions, 42 deletions
diff --git a/tests/stubs.h b/tests/stubs.h
index f178a9bc..56193cb3 100644
--- a/tests/stubs.h
+++ b/tests/stubs.h
@@ -81,16 +81,6 @@ fdready(int fd)
}
}
-int
-nosocket(nng_socket *s)
-{
- (void) s; // not used
-#ifdef CONVEY_H
- ConveySkip("Protocol unconfigured");
-#endif
- return (NNG_ENOTSUP);
-}
-
uint16_t
test_htons(uint16_t in)
{
@@ -100,36 +90,4 @@ test_htons(uint16_t in)
return (in);
}
-#ifndef NNG_HAVE_PUB0
-#define nng_pub0_open nosocket
-#endif
-
-#ifndef NNG_HAVE_SUB0
-#define nng_sub0_open nosocket
-#endif
-
-#ifndef NNG_HAVE_PAIR0
-#define nng_pair0_open nosocket
-#endif
-
-#ifndef NNG_HAVE_PUSH0
-#define nng_push0_open nosocket
-#endif
-
-#ifndef NNG_HAVE_PULL0
-#define nng_pull0_open nosocket
-#endif
-
-#ifndef NNG_HAVE_SURVEYOR0
-#define nng_surveyor0_open nosocket
-#endif
-
-#ifndef NNG_HAVE_RESPONDENT0
-#define nng_respondent0_open nosocket
-#endif
-
-#ifndef NNG_HAVE_BUS0
-#define nng_bus0_open nosocket
-#endif
-
#endif // STUBS_H