1 #ifndef TAO_TRADER_TEST_UTILS_H
2 #define TAO_TRADER_TEST_UTILS_H
5 #include "ace/Arg_Shifter.h"
6 #include "ace/Read_Buffer.h"
7 #include "orbsvcs/CosTradingC.h"
8 #include "orbsvcs/CosTradingReposC.h"
9 #include "orbsvcs/CosTradingDynamicC.h"
10 #include "ttest_export.h"
12 class TAO_TTest_Export TT_Info
16 static void dump_properties (const CosTrading::PropertySeq
& prop_seq
,
17 CORBA::Boolean print_dynamic
= 1);
18 // Dump the contents of this property sequence.
32 public POA_TAO_Trader_Test::Remote_Output
36 Remote_Output (void) {}
38 virtual void confirm (void)
40 // Method to test that the importer received a valid reference to
41 // the exported object.
44 class TAO_TTest_Export Printer
:
45 public POA_TAO_Trader_Test::Printer
51 virtual void confirm (void)
53 // Method to test that the importer received a valid reference to
54 // the exported object.
57 class TAO_TTest_Export Plotter
:
58 public POA_TAO_Trader_Test::Plotter
63 virtual void confirm (void)
65 // Method to test that the importer received a valid reference to
66 // the exported object.
69 class TAO_TTest_Export File_System
:
70 public POA_TAO_Trader_Test::File_System
75 virtual void confirm (void)
77 // Method to test that the importer received a valid reference to
78 // the exported object.
81 class TAO_TTest_Export PostScript_Printer
:
82 public POA_TAO_Trader_Test::PostScript_Printer
85 PostScript_Printer (void) {}
87 virtual void confirm (void)
89 // Method to test that the importer received a valid reference to
90 // the exported object.
94 static const char* INTERFACE_NAMES
[];
96 // = Remote IO property descriptions
98 enum REMOTE_IO_PROPERTIES
108 static const char* REMOTE_IO_NAME
;
109 static const char* REMOTE_IO_PROPERTY_NAMES
[];
111 // = Plotter property descriptions
113 enum PLOTTER_PROPERTIES
116 PLOTTER_AUTO_LOADING
,
117 PLOTTER_COST_PER_PAGE
,
118 PLOTTER_MODEL_NUMBER
,
120 PLOTTER_FILE_SIZES_PENDING
123 static const char* PLOTTER_NAME
;
124 static const char* PLOTTER_PROPERTY_NAMES
[];
126 // = Printer property descriptions
128 enum PRINTER_PROPERTIES
131 PRINTER_DOUBLE_SIDED
,
132 PRINTER_COST_PER_PAGE
,
133 PRINTER_MODEL_NUMBER
,
134 PRINTER_PAGES_PER_SEC
,
136 PRINTER_FILE_SIZES_PENDING
139 static const char* PRINTER_NAME
;
140 static const char* PRINTER_PROPERTY_NAMES
[];
142 // = File System Property Descriptions
144 enum FILESYSTEM_PROPERTIES
151 static const char* FILESYSTEM_NAME
;
152 static const char* FILESYSTEM_PROPERTY_NAMES
[];
154 // = PostScript Printer property descriptions.
156 enum PS_PRINTER_PROPERTIES
161 static const char* PS_PRINTER_NAME
;
162 static const char* PS_PRINTER_PROPERTY_NAMES
[];
166 #define NUM_OFFERS 15
167 static const char* LOCATIONS
[];
168 static const char* USERS
[];
169 static const char* MODEL_NUMBERS
[];
173 static const int NUM_QUERIES
;
174 static const char* QUERIES
[][4];
177 class TAO_TTest_Export TT_Parse_Args
179 // Utility to parse the command-line arguments to the trading service tests.
183 TT_Parse_Args (int& argc
, ACE_TCHAR
** argv
);
187 int federated () const;
188 // True if the test should test the federated features of the trading
192 // True if the tests should supress all but the most essential output.
195 // Not null if the test user supplied an explicit ior.
199 int federated_
, quiet_
;
203 #endif /* TAO_TRADER_TEST_UTILS_H */