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
15 static void dump_properties (const CosTrading::PropertySeq
& prop_seq
,
16 CORBA::Boolean print_dynamic
= 1);
17 // Dump the contents of this property sequence.
31 public POA_TAO_Trader_Test::Remote_Output
36 virtual void confirm ()
38 // Method to test that the importer received a valid reference to
39 // the exported object.
42 class TAO_TTest_Export Printer
:
43 public POA_TAO_Trader_Test::Printer
48 virtual void confirm ()
50 // Method to test that the importer received a valid reference to
51 // the exported object.
54 class TAO_TTest_Export Plotter
:
55 public POA_TAO_Trader_Test::Plotter
60 virtual void confirm ()
62 // Method to test that the importer received a valid reference to
63 // the exported object.
66 class TAO_TTest_Export File_System
:
67 public POA_TAO_Trader_Test::File_System
72 virtual void confirm ()
74 // Method to test that the importer received a valid reference to
75 // the exported object.
78 class TAO_TTest_Export PostScript_Printer
:
79 public POA_TAO_Trader_Test::PostScript_Printer
82 PostScript_Printer () {}
84 virtual void confirm ()
86 // Method to test that the importer received a valid reference to
87 // the exported object.
91 static const char* INTERFACE_NAMES
[];
93 // = Remote IO property descriptions
95 enum REMOTE_IO_PROPERTIES
105 static const char* REMOTE_IO_NAME
;
106 static const char* REMOTE_IO_PROPERTY_NAMES
[];
108 // = Plotter property descriptions
110 enum PLOTTER_PROPERTIES
113 PLOTTER_AUTO_LOADING
,
114 PLOTTER_COST_PER_PAGE
,
115 PLOTTER_MODEL_NUMBER
,
117 PLOTTER_FILE_SIZES_PENDING
120 static const char* PLOTTER_NAME
;
121 static const char* PLOTTER_PROPERTY_NAMES
[];
123 // = Printer property descriptions
125 enum PRINTER_PROPERTIES
128 PRINTER_DOUBLE_SIDED
,
129 PRINTER_COST_PER_PAGE
,
130 PRINTER_MODEL_NUMBER
,
131 PRINTER_PAGES_PER_SEC
,
133 PRINTER_FILE_SIZES_PENDING
136 static const char* PRINTER_NAME
;
137 static const char* PRINTER_PROPERTY_NAMES
[];
139 // = File System Property Descriptions
141 enum FILESYSTEM_PROPERTIES
148 static const char* FILESYSTEM_NAME
;
149 static const char* FILESYSTEM_PROPERTY_NAMES
[];
151 // = PostScript Printer property descriptions.
153 enum PS_PRINTER_PROPERTIES
158 static const char* PS_PRINTER_NAME
;
159 static const char* PS_PRINTER_PROPERTY_NAMES
[];
163 #define NUM_OFFERS 15
164 static const char* LOCATIONS
[];
165 static const char* USERS
[];
166 static const char* MODEL_NUMBERS
[];
170 static const int NUM_QUERIES
;
171 static const char* QUERIES
[][4];
174 class TAO_TTest_Export TT_Parse_Args
176 // Utility to parse the command-line arguments to the trading service tests.
179 TT_Parse_Args (int& argc
, ACE_TCHAR
** argv
);
183 int federated () const;
184 // True if the test should test the federated features of the trading
188 // True if the tests should supress all but the most essential output.
191 // Not null if the test user supplied an explicit ior.
194 int federated_
, quiet_
;
198 #endif /* TAO_TRADER_TEST_UTILS_H */