summaryrefslogtreecommitdiff
path: root/test/ClientTest.h
diff options
context:
space:
mode:
authorZhu, Yongsheng <yongsheng.zhu@intel.com>2009-07-13 15:34:59 +0800
committerPatrick Ohly <patrick.ohly@intel.com>2009-12-01 21:45:42 +0100
commit7f17cc02e685eac5931a0d1fdf26e0bd134d9660 (patch)
treeb591ec7be83956cc44a423d8a7816360d6c35b71 /test/ClientTest.h
parent64a828623d210f4b77b40b1f8bd324f682f4060d (diff)
client-test+ZYB: set maxMsgSize and maxObjSize as default value (MB#2424)
For ZYB, the client-test sets different maxMsgsize and maxObjSize in two times sync and this causes server initializing a slow-sync mode. See detail: http://bugzilla.moblin.org/show_bug.cgi?id=2424#c13
Diffstat (limited to 'test/ClientTest.h')
-rw-r--r--test/ClientTest.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/ClientTest.h b/test/ClientTest.h
index b28e1fc8..4722fa4d 100644
--- a/test/ClientTest.h
+++ b/test/ClientTest.h
@@ -94,6 +94,10 @@ class CheckSyncReport {
* parameters for running a sync
*/
struct SyncOptions {
+ /** default maximum message size */
+ static const long DEFAULT_MAX_MSG_SIZE = 128 * 1024;
+ /** default maximum object size */
+ static const long DEFAULT_MAX_OBJ_SIZE = 1024 * 1024 * 1024;
/** sync mode chosen by client */
SyncMode m_syncMode;
/**
@@ -129,8 +133,8 @@ struct SyncOptions {
SyncOptions(SyncMode syncMode = SYNC_NONE,
const CheckSyncReport &checkReport = CheckSyncReport(),
- long maxMsgSize = 128 * 1024, // 128KB = large enough that normal tests should run with a minimal number of messages
- long maxObjSize = 1 * 1024 * 1024 * 1024, // 1GB = basically unlimited...
+ long maxMsgSize = DEFAULT_MAX_MSG_SIZE, // 128KB = large enough that normal tests should run with a minimal number of messages
+ long maxObjSize = DEFAULT_MAX_OBJ_SIZE, // 1GB = basically unlimited...
bool loSupport = false,
bool isWBXML = defaultWBXML(),
Callback_t startCallback = EmptyCallback,