Home | History | Annotate | Download | only in tools
      1 /*
      2  *  Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
      3  *
      4  *  Use of this source code is governed by a BSD-style license
      5  *  that can be found in the LICENSE file in the root of the source
      6  *  tree. An additional intellectual property rights grant can be found
      7  *  in the file PATENTS.  All contributing project authors may
      8  *  be found in the AUTHORS file in the root of the source tree.
      9  */
     10 
     11 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_NETEQ_PERFORMANCE_TEST_H_
     12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_NETEQ_PERFORMANCE_TEST_H_
     13 
     14 #include "webrtc/typedefs.h"
     15 
     16 namespace webrtc {
     17 namespace test {
     18 
     19 class NetEqPerformanceTest {
     20  public:
     21   // Runs a performance test with parameters as follows:
     22   //   |runtime_ms|: the simulation time, i.e., the duration of the audio data.
     23   //   |lossrate|: drop one out of |lossrate| packets, e.g., one out of 10.
     24   //   |drift_factor|: clock drift in [0, 1].
     25   // Returns the runtime in ms.
     26   static int64_t Run(int runtime_ms, int lossrate, double drift_factor);
     27 };
     28 
     29 }  // namespace test
     30 }  // namespace webrtc
     31 
     32 #endif  // WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_NETEQ_PERFORMANCE_TEST_H_
     33