~ubuntu-branches/ubuntu/quantal/zeroc-ice/quantal

« back to all changes in this revision

Viewing changes to test/IceGrid/activation/TestI.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Francisco Moya
  • Date: 2006-08-06 19:00:57 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060806190057-3q4p9ws4ucyamn10
Tags: 3.1.0-2
* Patches #5 to #6 from ZeroC forums.
* Patch by Michael Pugach for DescriptorHelper.cpp.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// **********************************************************************
 
2
//
 
3
// Copyright (c) 2003-2006 ZeroC, Inc. All rights reserved.
 
4
//
 
5
// This copy of Ice is licensed to you under the terms described in the
 
6
// ICE_LICENSE file included in this distribution.
 
7
//
 
8
// **********************************************************************
 
9
 
 
10
#include <Ice/Ice.h>
 
11
#include <TestI.h>
 
12
 
 
13
using namespace Test;
 
14
 
 
15
TestI::TestI(const Ice::ObjectAdapterPtr& adapter) :
 
16
    _adapter(adapter),
 
17
    _failed(false)
 
18
{
 
19
}
 
20
 
 
21
void
 
22
TestI::fail(const Ice::Current&)
 
23
{
 
24
    _failed = true;
 
25
    _adapter->getCommunicator()->shutdown();
 
26
}
 
27
 
 
28
void
 
29
TestI::shutdown(const Ice::Current&)
 
30
{
 
31
    _adapter->getCommunicator()->shutdown();
 
32
}
 
33
 
 
34
bool
 
35
TestI::isFailed() const
 
36
{
 
37
    return _failed;
 
38
}