| 9 | namespace sc2 { |
| 10 | |
| 11 | class TestAppBasic : public TestSequence { |
| 12 | public: |
| 13 | DebugInterface::AppTest app_test_; |
| 14 | int delay_ms_; |
| 15 | |
| 16 | TestAppBasic() : |
| 17 | TestSequence() { |
| 18 | } |
| 19 | |
| 20 | TestAppBasic(DebugInterface::AppTest app_test, int delay_ms = 0) : |
| 21 | app_test_(app_test), |
| 22 | delay_ms_(delay_ms) { |
| 23 | } |
| 24 | |
| 25 | void OnTestStart() override { |
| 26 | wait_game_loops_ = 10; |
| 27 | } |
| 28 | |
| 29 | void OnTestFinish() override { |
| 30 | DebugInterface* debug = agent_->Debug(); |
| 31 | debug->DebugTestApp(app_test_, delay_ms_); |
| 32 | debug->SendDebug(); |
| 33 | } |
| 34 | }; |
| 35 | |
| 36 | class AppTestBotHang : public UnitTestBot { |
| 37 | public: |
no outgoing calls