Change C++ WaitCommand to use units (#1865)

Also remove unique_ptr usage.
This commit is contained in:
Peter Johnson
2019-09-02 23:39:51 -07:00
committed by GitHub
parent 1fb3011235
commit 761bc3ef85
10 changed files with 27 additions and 25 deletions

View File

@@ -18,7 +18,7 @@ class CommandDecoratorTest : public CommandTestBase {};
TEST_F(CommandDecoratorTest, WithTimeoutTest) {
CommandScheduler scheduler = GetScheduler();
auto command = RunCommand([] {}, {}).WithTimeout(.1);
auto command = RunCommand([] {}, {}).WithTimeout(.1_s);
scheduler.Schedule(&command);

View File

@@ -15,7 +15,7 @@ class WaitCommandTest : public CommandTestBase {};
TEST_F(WaitCommandTest, WaitCommandScheduleTest) {
CommandScheduler scheduler = GetScheduler();
WaitCommand command(.1);
WaitCommand command(.1_s);
scheduler.Schedule(&command);
scheduler.Run();