Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Bug_3748_Regression / Test_Protocols_Hooks.cpp
blob4782e4214e5784aa14c6ff3ee0b371f438087a4a
1 // -*- C++ -*-
3 #include "Test_Protocols_Hooks.h"
4 #include "TestC.h"
6 Test_Protocols_Hooks::Test_Protocols_Hooks (void)
7 : failure_count_ (0)
12 Test_Protocols_Hooks::~Test_Protocols_Hooks (void)
16 void
17 Test_Protocols_Hooks::init_hooks (TAO_ORB_Core *)
19 // No-op.
22 CORBA::Boolean
23 Test_Protocols_Hooks::set_client_network_priority (IOP::ProfileId,
24 TAO_Stub *)
26 return false;
29 CORBA::Boolean
30 Test_Protocols_Hooks::set_server_network_priority (IOP::ProfileId,
31 CORBA::Policy *)
33 return false;
36 void
37 Test_Protocols_Hooks::server_protocol_properties_at_orb_level (
38 TAO_IIOP_Protocol_Properties &)
40 if (++this->failure_count_ < Test::expected_failure_number)
41 throw ::CORBA::INTERNAL ();
44 void
45 Test_Protocols_Hooks::client_protocol_properties_at_orb_level (
46 TAO_IIOP_Protocol_Properties &)
48 // No-op.
51 void
52 Test_Protocols_Hooks::server_protocol_properties_at_orb_level (
53 TAO_UIOP_Protocol_Properties &)
55 // No-op.
58 void
59 Test_Protocols_Hooks::client_protocol_properties_at_orb_level (
60 TAO_UIOP_Protocol_Properties &)
62 // No-op.
65 void
66 Test_Protocols_Hooks::server_protocol_properties_at_orb_level (
67 TAO_SHMIOP_Protocol_Properties &)
69 // No-op.
72 void
73 Test_Protocols_Hooks::client_protocol_properties_at_orb_level (
74 TAO_SHMIOP_Protocol_Properties &)
76 // No-op.
79 void
80 Test_Protocols_Hooks::server_protocol_properties_at_orb_level (
81 TAO_DIOP_Protocol_Properties &)
83 // No-op.
86 void
87 Test_Protocols_Hooks::client_protocol_properties_at_orb_level (
88 TAO_DIOP_Protocol_Properties &)
90 // No-op.
93 void
94 Test_Protocols_Hooks::server_protocol_properties_at_orb_level (
95 TAO_SCIOP_Protocol_Properties &)
97 // No-op.
100 void
101 Test_Protocols_Hooks::client_protocol_properties_at_orb_level (
102 TAO_SCIOP_Protocol_Properties &)
104 // No-op.
107 CORBA::Long
108 Test_Protocols_Hooks::get_dscp_codepoint (void)
110 return -1;
113 void
114 Test_Protocols_Hooks::get_selector_hook (
115 CORBA::Policy *,
116 CORBA::Boolean &,
117 CORBA::Short &)
119 // No-op.
122 void
123 Test_Protocols_Hooks::get_selector_bands_policy_hook (
124 CORBA::Policy *,
125 CORBA::Short,
126 CORBA::Short &,
127 CORBA::Short &,
128 bool &
131 // No-op.
135 Test_Protocols_Hooks::get_thread_CORBA_priority (CORBA::Short &)
137 return -1;
141 Test_Protocols_Hooks::get_thread_native_priority (
142 CORBA::Short &)
144 return -1;
148 Test_Protocols_Hooks::get_thread_CORBA_and_native_priority (
149 CORBA::Short &,
150 CORBA::Short &)
152 return -1;
156 Test_Protocols_Hooks::get_thread_implicit_CORBA_priority (CORBA::Short &)
158 return -1;
162 Test_Protocols_Hooks::restore_thread_CORBA_and_native_priority (
163 CORBA::Short,
164 CORBA::Short
167 return -1;
171 Test_Protocols_Hooks::set_thread_CORBA_priority (CORBA::Short)
173 return -1;
176 ACE_STATIC_SVC_DEFINE (Test_Protocols_Hooks,
177 ACE_TEXT ("Test_Protocols_Hooks"),
178 ACE_SVC_OBJ_T,
179 &ACE_SVC_NAME (Test_Protocols_Hooks),
180 ACE_Service_Type::DELETE_THIS
181 | ACE_Service_Type::DELETE_OBJ,
183 ACE_FACTORY_DEFINE (ACE_Local_Service, Test_Protocols_Hooks)