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();
int main(int argc, char **argv)
DummyExecutionBase(const std::string &_name)
TEST_F(AbstractExecutionFixture, timeout)
Base class for running concurrent navigation tasks.
bool cancel()
Cancel the plugin execution.
AbstractExecutionFixture()