1 #include <gtest/gtest.h>
4 #include <boost/chrono.hpp>
20 condition_.notify_all();
28 boost::unique_lock<boost::mutex> lock(mutex);
33 condition_.wait_for(lock, boost::chrono::seconds(1));
57 EXPECT_EQ(impl_.waitForStateUpdate(boost::chrono::microseconds(60)), boost::cv_status::timeout);
58 EXPECT_EQ(impl_.getOutcome(), 255);
65 EXPECT_EQ(impl_.waitForStateUpdate(boost::chrono::microseconds(60)), boost::cv_status::timeout);
70 EXPECT_EQ(impl_.getOutcome(), 0);
76 for (
size_t ii = 0; ii != 10; ++ii)
83 for (
size_t ii = 0; ii != 10; ++ii)
90 int main(
int argc,
char** argv)
92 testing::InitGoogleTest(&argc, argv);
93 return RUN_ALL_TESTS();