I have class (CMyFunctions) with some private functions, which is implemented as part of DLL. I need to write test class (CMyFunctions_TEST) to test functions. To test private functions, I need to declare CMyFunctions_TEST as friend of CMYFunctions. It needs change of CMyFunctions declaration (code change to dll). I do not want to make code changes to my DLL to be able to test it.

Are there any good alternatives which does not require code chage to DLL?