~ubuntu-branches/ubuntu/saucy/resiprocate/saucy-proposed

« back to all changes in this revision

Viewing changes to tfm/tfdum/TestClientPublication.hxx

  • Committer: Package Import Robot
  • Author(s): Daniel Pocock
  • Date: 2012-05-17 19:29:59 UTC
  • Revision ID: package-import@ubuntu.com-20120517192959-vv00m77isztdy64q
Tags: upstream-1.8.2
ImportĀ upstreamĀ versionĀ 1.8.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#if !defined(TestClientPublication_hxx)
 
2
#define TestClientPublication_hxx
 
3
 
 
4
#include "TestUsage.hxx"
 
5
#include "resip/dum/Handles.hxx"
 
6
#include "tfm/EndPoint.hxx"
 
7
#include "ClientPublicationEvent.hxx"
 
8
 
 
9
class DumUserAgent;
 
10
class MessageMatcher;
 
11
 
 
12
class CommonAction;
 
13
 
 
14
class TestClientPublication : public TestUsage
 
15
{
 
16
   public:
 
17
      TestClientPublication(DumUserAgent*);
 
18
      virtual ~TestClientPublication();
 
19
 
 
20
      resip::Data getName() const { return "TestClientPublication"; }
 
21
 
 
22
      CommonAction* refresh(unsigned int expiration=0);
 
23
      CommonAction* update(const resip::Contents* body);
 
24
      CommonAction* end();
 
25
 
 
26
      bool isMyEvent(Event*);
 
27
 
 
28
      resip::ClientPublicationHandle getHandle() const { return mHandle; }
 
29
 
 
30
      ExpectBase* expect(ClientPublicationEvent::Type,
 
31
                         MessageMatcher* matcher,
 
32
                         int timeoutMs,
 
33
                         ActionBase* expectAction);
 
34
 
 
35
      ExpectBase* expect(ClientPublicationEvent::Type,
 
36
                         ExpectPreCon& pred,
 
37
                         int timeoutMs,
 
38
                         ActionBase* expectAction);
 
39
 
 
40
      ExpectBase* expect(ClientPublicationEvent::Type,
 
41
                         MessageMatcher* matcher,
 
42
                         ExpectPreCon& pred,
 
43
                         int timeoutMs,
 
44
                         ActionBase* expectAction);
 
45
 
 
46
   private:
 
47
      friend class DumUserAgent;
 
48
      resip::ClientPublicationHandle& getHandleRef() { return mHandle; }
 
49
      resip::ClientPublicationHandle mHandle;
 
50
 
 
51
};
 
52
 
 
53
#endif