Mocks.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include "Qt.h"
00024 #include "Mocks.h"
00025 #include "TesterApplication.h"
00026 #include "Imports.cpp"
00027
00029
00040 void SignalWaitHelper::processEvents (int maxTime)
00041 {
00042 TesterApplication::exec (maxTime);
00043 }
00044
00046
00057 CallDriver <BoundFunction <SignalWaitHelper, void (int)> >
00058 Utils::CalitkoMocks::waitFor (int maxTime)
00059 {
00060 static SignalWaitHelper waitHelper;
00061 return CallDriver < BoundFunction <SignalWaitHelper, void (int)> >
00062 (auto_ptr <BoundFunction <SignalWaitHelper, void (int)> >
00063 (new BoundFunction <SignalWaitHelper, void (int)>
00064 (&waitHelper, &SignalWaitHelper::processEvents, maxTime)));
00065 }