/* $Id$ */
/** @file
*
* Context ID makeup/extraction test cases.
*/
/*
* Copyright (C) 2012 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#define LOG_ENABLED
#include "../include/GuestCtrlImplPrivate.h"
using namespace com;
int main()
{
if (rc)
return rc;
{
return RTEXITCODE_FAILURE;
}
/* Don't let the assertions trigger here
* -- we rely on the return values in the test(s) below. */
RTAssertSetQuiet(true);
#if 0
{
{
}
}
#endif
/* Do 4048 tests total. */
{
/* VBOX_GUESTCTRL_MAX_* includes 0 as an object, so subtract one. */
if (s != VBOX_GUESTCTRL_CONTEXTID_GET_SESSION(uContextID))
{
}
else if (p != VBOX_GUESTCTRL_CONTEXTID_GET_OBJECT(uContextID))
{
}
if (c != VBOX_GUESTCTRL_CONTEXTID_GET_COUNT(uContextID))
{
}
if (uContextID > UINT32_MAX)
{
s, p, c, uContextID);
}
}
/*
* Summary.
*/
return RTTestSummaryAndDestroy(hTest);
}