VirtualBox

Changeset 15579 in vbox for trunk/src/VBox/Main/testcase


Ignore:
Timestamp:
Dec 16, 2008 1:00:44 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
41088
Message:

Added testcase for Host::MemorySize and MemoryAvailable to tstAPI.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/testcase/tstAPI.cpp

    r14831 r15579  
    11251125    while (FALSE);
    11261126    printf ("\n");
     1127#endif
     1128
     1129#if 0
     1130    do {
     1131        // Get host
     1132        ComPtr <IHost> host;
     1133        CHECK_ERROR_BREAK (virtualBox, COMGETTER(Host) (host.asOutParam()));
     1134
     1135        ULONG uMemSize, uMemAvail;
     1136        CHECK_ERROR_BREAK (host, COMGETTER(MemorySize) (&uMemSize));
     1137        printf("Total memory (MB): %u\n", uMemSize);
     1138        CHECK_ERROR_BREAK (host, COMGETTER(MemoryAvailable) (&uMemAvail));
     1139        printf("Free memory (MB): %u\n", uMemAvail);
     1140    } while (0);
    11271141#endif
    11281142
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette