Am very new to GTest. Now am performing GTest for my project.
In my class I have both private and public access specifiers. I can able to call the public methods by creating objects. But I cant able to test private methods in the same way.
Need some suggestions to access private methods in the class.
Similar class example
Class myproject
{
public :
void sendChimePlayrequestOn();
void sendChimePlayrequestOff();
virtual void OnMessage( const sal::Message& msg );
private :
void sendHeartBeat();
void onStartingExecute();
};
How to access these private functions, some are just defined not accessible through public methods also.