tstGuestCtrlContextID.cpp revision c10a6f0c7041e4d1ee50ad38425aab9d43c55522
/* $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
#define LOG_GROUP LOG_GROUP_MAIN
#define LOG_INSTANCE NULL
#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);
/* Do 64 tests total. */
{
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);
}