aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-08-20 13:00:55 +0200
committerLoïc Hoguin <[email protected]>2012-08-20 13:00:55 +0200
commit9cafa5e675065993c117cd94cc903248f5c97991 (patch)
tree688b7ed467074b81f7557ac80dba363a127669c4 /test
parent0d84eda41c460433baa93cd06cb82a3d47cf814c (diff)
downloadranch-9cafa5e675065993c117cd94cc903248f5c97991.tar.gz
ranch-9cafa5e675065993c117cd94cc903248f5c97991.tar.bz2
ranch-9cafa5e675065993c117cd94cc903248f5c97991.zip
Add the 'ranch_protocol' behaviour
Diffstat (limited to 'test')
-rw-r--r--test/active_echo_protocol.erl1
-rw-r--r--test/echo_protocol.erl1
-rw-r--r--test/notify_and_wait_protocol.erl1
-rw-r--r--test/remove_conn_and_wait_protocol.erl1
4 files changed, 4 insertions, 0 deletions
diff --git a/test/active_echo_protocol.erl b/test/active_echo_protocol.erl
index ac53d12..875bdd2 100644
--- a/test/active_echo_protocol.erl
+++ b/test/active_echo_protocol.erl
@@ -1,4 +1,5 @@
-module(active_echo_protocol).
+-behaviour(ranch_protocol).
-export([start_link/4]).
-export([init/4]).
diff --git a/test/echo_protocol.erl b/test/echo_protocol.erl
index 6839239..54507d2 100644
--- a/test/echo_protocol.erl
+++ b/test/echo_protocol.erl
@@ -1,4 +1,5 @@
-module(echo_protocol).
+-behaviour(ranch_protocol).
-export([start_link/4]).
-export([init/4]).
diff --git a/test/notify_and_wait_protocol.erl b/test/notify_and_wait_protocol.erl
index c959732..f0136a1 100644
--- a/test/notify_and_wait_protocol.erl
+++ b/test/notify_and_wait_protocol.erl
@@ -1,4 +1,5 @@
-module(notify_and_wait_protocol).
+-behaviour(ranch_protocol).
-export([start_link/4]).
-export([init/2]).
diff --git a/test/remove_conn_and_wait_protocol.erl b/test/remove_conn_and_wait_protocol.erl
index 011bd5d..6a5b52a 100644
--- a/test/remove_conn_and_wait_protocol.erl
+++ b/test/remove_conn_and_wait_protocol.erl
@@ -1,4 +1,5 @@
-module(remove_conn_and_wait_protocol).
+-behaviour(ranch_protocol).
-export([start_link/4]).
-export([init/2]).