summaryrefslogtreecommitdiff
path: root/cpp/src/tests/Cluster_child.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-02-01 18:02:42 +0000
committerAlan Conway <aconway@apache.org>2008-02-01 18:02:42 +0000
commit4db96f7ad47c69982cdc6cf7b5e5c47b00f1144b (patch)
treed125438eb115c0b21171b27d17e6ca1f57622542 /cpp/src/tests/Cluster_child.cpp
parentae3201b50554b23f52132635f2e852a4fc78617e (diff)
downloadqpid-python-4db96f7ad47c69982cdc6cf7b5e5c47b00f1144b.tar.gz
Cluster code fixed for changes in codebase.
- Using SessionManager::Observer - Better ais test setup, only need to be member of ais group. - Update cluster_client - SessionState holds handler chains. - Cluster frames include next handler ptr. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@617582 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/Cluster_child.cpp')
-rw-r--r--cpp/src/tests/Cluster_child.cpp53
1 files changed, 0 insertions, 53 deletions
diff --git a/cpp/src/tests/Cluster_child.cpp b/cpp/src/tests/Cluster_child.cpp
deleted file mode 100644
index 75591bb68f..0000000000
--- a/cpp/src/tests/Cluster_child.cpp
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- *
- * Copyright (c) 2006 The Apache Software Foundation
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-// Child process for the Cluster test suite multi-process tests.
-
-#include "Cluster.h"
-#include "test_tools.h"
-#include "qpid/framing/SessionOpenBody.h"
-#include "qpid/framing/SessionAttachedBody.h"
-
-using namespace std;
-using namespace qpid;
-using namespace qpid::cluster;
-using namespace qpid::framing;
-using namespace qpid::sys;
-using namespace qpid::log;
-
-static const ProtocolVersion VER;
-
-/** Child part of Cluster::clusterTwo test */
-void clusterTwo() {
- TestCluster cluster("clusterTwo", "amqp:child:2");
- AMQFrame frame = cluster.received.pop(frame); // Frame from parent.
- BOOST_CHECK_TYPEID_EQUAL(SessionOpenBody, *frame.getBody());
- BOOST_CHECK_EQUAL(2u, cluster.size()); // Me and parent
-
- AMQFrame send(in_place<SessionAttachedBody>(VER));
- send.setChannel(1);
- cluster.handle(send);
- BOOST_REQUIRE(cluster.received.waitPop(frame));
- BOOST_CHECK_TYPEID_EQUAL(SessionAttachedBody, *frame.getBody());
-}
-
-int test_main(int, char**) {
- clusterTwo();
- return 0;
-}
-