kerneltest/e32test/secure/t_shal.cpp
changeset 271 dc268b18d709
parent 121 661475905584
--- a/kerneltest/e32test/secure/t_shal.cpp	Mon Sep 13 15:16:07 2010 +0100
+++ b/kerneltest/e32test/secure/t_shal.cpp	Wed Sep 22 10:53:45 2010 +0100
@@ -1,4 +1,4 @@
-// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies).
 // All rights reserved.
 // This component and the accompanying materials are made available
 // under the terms of the License "Eclipse Public License v1.0"
@@ -30,6 +30,7 @@
 // 
 //
 
+#define __E32TEST_EXTENSION__
 #define __INCLUDE_CAPABILITY_NAMES__
 
 #include <e32test.h>
@@ -83,6 +84,21 @@
 
 #define SET_CHECK(a,c) 	GetSetCheck(#a,a,c);
 
+LOCAL_C void TestUnusedFunctions()
+    {
+    TAny * mem = 0;
+    TInt ret=0;
+    ret=UserSvr::HalGet(HALData::EMemoryRAMFree, mem);
+    test_Equal(KErrNotSupported, ret);
+    ret=UserSvr::HalSet(HALData::EMemoryRAMFree, mem);
+    test_Equal(KErrNotSupported, ret);
+    ret=UserSvr::ResetMachine(EStartupCold);
+    test_Equal(KErrNotSupported, ret);
+    UserSvr::WsSwitchOnScreen();
+    ret=User::Beep(220,1000000);
+	test_Equal(KErrNotSupported, ret);
+    }
+
 LOCAL_C TInt DoTests()
 	{
 	TInt r;
@@ -194,6 +210,8 @@
 
 	test.Title();
 
+	TestUnusedFunctions();
+	
 	if(User::CommandLineLength())
 		{
 		TBuf<128> message;