kookie424 / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

can gtest simulate the event when the software running while poweroff or nework-falied? #185

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
first ,i am newer, and i only know something about gtest. 
now ,i want to know somethins about whether the gtest can support?
if my code must used the socket ,then i want to simulate the event of 
network-failed, the gtest can support this envent?

Original issue reported on code.google.com by dragon16...@yahoo.com.cn on 28 Aug 2009 at 2:37

GoogleCodeExporter commented 9 years ago
Please use the discussion group for questions.  You'll get answers faster that 
way.

See
http://code.google.com/p/googletest/wiki/GoogleTestFAQ#My_question_is_not_covere
d_in_your_FAQ!

You can use something like Google Mock to simulate errors like this:
http://code.google.com/p/googlemock

Original comment by zhanyong...@gmail.com on 2 Sep 2009 at 4:33