Main Page | Modules | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

alp_ipc_unit_test.h

Go to the documentation of this file.
00001 /********************************************************************
00002 
00003 Copyright 2006, ACCESS Systems Americas, Inc. All rights reserved.
00004 
00005 The contents of this file are subject to the Mozilla Public License Version
00006 1.1 (the "License"); you may not use this file except in compliance with
00007 the License. You may obtain a copy of the License at
00008 http://www.mozilla.org/MPL/
00009 
00010 Software distributed under the License is distributed on an "AS IS" basis,
00011 WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00012 for the specific language governing rights and limitations under the
00013 License.
00014 
00015 The Original Code is the entire contents of this file.
00016 
00017 The Initial Developer of the Original Code is ACCESS Systems Americas, Inc.
00018 
00019 Portions created by ACCESS Systems Americas, Inc. are Copyright © 2006. All
00020 Rights Reserved.
00021 
00022 Contributor(s): none.
00023 
00024 ********************************************************************/
00025 #ifndef __ALP_IPC_UNIT_TEST_H_
00026 #define __ALP_IPC_UNIT_TEST_H_
00027 
00028 // common definitions used by the sample client and server
00029 
00030 static guint gLongMessageLength = 130000;  // must be divisible by 10
00031 
00032 static char UNIT_TEST_CHANNEL_NAME_CONNECT[] = "IPC_UNIT_TEST_CONNECT";
00033 static char UNIT_TEST_CHANNEL_NAME_MESSAGE[] = "IPC_UNIT_TEST_MESSAGE";
00034 
00035 typedef enum {
00036         UNIT_TEST_MESSAGE_HELLO = 100,
00037         UNIT_TEST_MESSAGE_LONG_FORMAT_STRING,
00038         UNIT_TEST_MESSAGE_LONG_MESSAGE,
00039         UNIT_TEST_MESSAGE_PACK_EACH_TYPE,
00040         UNIT_TEST_MESSAGE_GOODBYE,
00041         UNIT_TEST_MESSAGE_SHUTDOWN_SERVER,
00042         UNIT_TEST_MESSAGE_HELLO_WITH_RESPONSE,
00043         UNIT_TEST_MESSAGE_HELLO_WITH_RESPONSE_TIMEOUT,
00044         UNIT_TEST_MESSAGE_LONG_MESSAGE_WITH_RESPONSE,
00045         UNIT_TEST_MESSAGE_HELLO_SYNCH_WITH_EXTRA_MESSAGE,
00046         UNIT_TEST_MESSAGE_HELLO_RESPONSE_WITH_EXTRA_MESSAGE,
00047         UNIT_TEST_MESSAGE_SERVER_OK,
00048         UNIT_TEST_MESSAGE_SERVER_ERROR,
00049         UNIT_TEST_MESSAGE_SERVER_DEFERRED,
00050 } UnitTestMessageID;
00051 
00052 static gint  NUM_GOODBYE_MESSAGES = 10;
00053 
00054 #endif // #ifndef __ALP_IPC_UNIT_TEST_
00055 

Generated on Sat Dec 16 20:29:47 2006 for hiker-0.9 by  doxygen 1.4.4