aboutsummaryrefslogtreecommitdiff
path: root/src/tests/testSignals.cc
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-04-30 15:48:33 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-05-10 11:00:46 (GMT)
commitad0951ca539d23f8f0ed9a1e8519feacc2ef907c (patch)
tree32a88bbdcd41a04188cb2ca1ac574be9651509af /src/tests/testSignals.cc
parent4f89009c9e6521910442eabc36d572367398c0bf (diff)
downloadfluxbox-ad0951ca539d23f8f0ed9a1e8519feacc2ef907c.zip
fluxbox-ad0951ca539d23f8f0ed9a1e8519feacc2ef907c.tar.bz2
Remove Observers from testSignal.cc
Diffstat (limited to 'src/tests/testSignals.cc')
-rw-r--r--src/tests/testSignals.cc23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/tests/testSignals.cc b/src/tests/testSignals.cc
index 9b9d151..d316a62 100644
--- a/src/tests/testSignals.cc
+++ b/src/tests/testSignals.cc
@@ -3,9 +3,6 @@ using namespace std;
3 3
4#include "../FbTk/Signal.hh" 4#include "../FbTk/Signal.hh"
5#include "../FbTk/MemFun.hh" 5#include "../FbTk/MemFun.hh"
6#include "../FbTk/RelaySignal.hh"
7#include "../FbTk/Observer.hh"
8#include "../FbTk/Subject.hh"
9 6
10#include <string> 7#include <string>
11 8
@@ -154,26 +151,6 @@ int main() {
154 2.9); 151 2.9);
155 152
156 } 153 }
157 // Test relay new signals to old
158 {
159 cout << "---------- Testing relay of signals" << endl;
160 struct Observer: public FbTk::Observer {
161 void update(FbTk::Subject* subj) {
162 cout << "Observer called." << endl;
163 }
164 };
165 // setup old subject->observer listening
166 FbTk::Subject destination;
167 Observer obs;
168 destination.attach(&obs);
169 // create a new signal and relay it to the
170 // old subject
171 FbTk::Signal<string> source;
172 FbTk::relaySignal(source, destination);
173 // the new signal should now make the old
174 // subject notify its observers
175 source.emit("hello world");
176 }
177 154
178 // Test argument selector 155 // Test argument selector
179 { 156 {