Expose run function to NetEqSimulator

Bug: webrtc:11005
Change-Id: I84f01536b40ba17e66877cdced194e05b882b5c5
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/167537
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Ivo Creusen <ivoc@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30405}
diff --git a/api/test/neteq_simulator.h b/api/test/neteq_simulator.h
index a826ca5..88c7ffa 100644
--- a/api/test/neteq_simulator.h
+++ b/api/test/neteq_simulator.h
@@ -60,6 +60,9 @@
     int packet_size_ms = 0;
   };
 
+  // Runs the simulation until the end. Returns the duration of the produced
+  // audio in ms.
+  virtual int64_t Run() = 0;
   // Runs the simulation until we hit the next GetAudio event. If the simulation
   // is finished, is_simulation_finished will be set to true in the returned
   // SimulationStepResult.
diff --git a/modules/audio_coding/neteq/tools/neteq_test.h b/modules/audio_coding/neteq/tools/neteq_test.h
index afcc077..0a6c24f 100644
--- a/modules/audio_coding/neteq/tools/neteq_test.h
+++ b/modules/audio_coding/neteq/tools/neteq_test.h
@@ -92,7 +92,7 @@
   ~NetEqTest() override;
 
   // Runs the test. Returns the duration of the produced audio in ms.
-  int64_t Run();
+  int64_t Run() override;
   // Runs the simulation until we hit the next GetAudio event. If the simulation
   // is finished, is_simulation_finished will be set to true in the returned
   // SimulationStepResult.