From 5be1f0fe1755f8708a15749437a6a14524e42a03 Mon Sep 17 00:00:00 2001 From: Gabriel Hare Date: Tue, 12 Aug 2014 21:13:58 -0700 Subject: [PATCH] Demonstrate use of DeclareAutoFilter function. --- src/autowiring/test/AutoFilterTest.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/autowiring/test/AutoFilterTest.cpp b/src/autowiring/test/AutoFilterTest.cpp index 82b73e7ab..d1898c70f 100644 --- a/src/autowiring/test/AutoFilterTest.cpp +++ b/src/autowiring/test/AutoFilterTest.cpp @@ -5,6 +5,7 @@ #include #include #include +#include #include #include THREAD_HEADER @@ -1133,16 +1134,12 @@ struct MultiFilter01 { MultiFilter01() { // Constructor wraps each method in an AutoFilter call - AutoConstruct&>>([this] (const Decoration<0>& arg) { - Call0(std::move(arg)); - }); - AutoConstruct&>>([this] (const Decoration<1>& arg) { - Call1(std::move(arg)); - }); + DeclareAutoFilter(this, &MultiFilter01::Call0); + DeclareAutoFilter(this, &MultiFilter01::Call1); } }; -TEST_F(AutoFilterTest, MultiMicroAutoFilter) { +TEST_F(AutoFilterTest, DeclareAutoFilterTest) { AutoCurrentContext()->Initiate(); AutoRequired factory; AutoRequired mf01;