tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

Tester.cc (2788B)


      1 /*
      2 *  Copyright (c) 2012 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 
     12 #include "modules/audio_coding/test/EncodeDecodeTest.h"
     13 #include "modules/audio_coding/test/PacketLossTest.h"
     14 #include "modules/audio_coding/test/TestAllCodecs.h"
     15 #include "modules/audio_coding/test/TestRedFec.h"
     16 #include "modules/audio_coding/test/TestStereo.h"
     17 #include "modules/audio_coding/test/TestVADDTX.h"
     18 #include "modules/audio_coding/test/opus_test.h"
     19 #include "test/gtest.h"
     20 
     21 TEST(AudioCodingModuleTest, TestAllCodecs) {
     22  webrtc::TestAllCodecs().Perform();
     23 }
     24 
     25 #if defined(WEBRTC_ANDROID)
     26 TEST(AudioCodingModuleTest, DISABLED_TestEncodeDecode) {
     27 #else
     28 TEST(AudioCodingModuleTest, TestEncodeDecode) {
     29 #endif
     30  webrtc::EncodeDecodeTest().Perform();
     31 }
     32 
     33 TEST(AudioCodingModuleTest, TestRedFec) {
     34  webrtc::TestRedFec().Perform();
     35 }
     36 
     37 // Disabled on ios as flaky, see https://crbug.com/webrtc/7057
     38 #if defined(WEBRTC_ANDROID) || defined(WEBRTC_IOS)
     39 TEST(AudioCodingModuleTest, DISABLED_TestStereo) {
     40 #else
     41 TEST(AudioCodingModuleTest, TestStereo) {
     42 #endif
     43  webrtc::TestStereo().Perform();
     44 }
     45 
     46 TEST(AudioCodingModuleTest, TestWebRtcVadDtx) {
     47  webrtc::TestWebRtcVadDtx().Perform();
     48 }
     49 
     50 TEST(AudioCodingModuleTest, TestOpusDtx) {
     51  webrtc::TestOpusDtx().Perform();
     52 }
     53 
     54 // Disabled on ios as flaky, see https://crbug.com/webrtc/7057
     55 #if defined(WEBRTC_IOS)
     56 TEST(AudioCodingModuleTest, DISABLED_TestOpus) {
     57 #else
     58 TEST(AudioCodingModuleTest, TestOpus) {
     59 #endif
     60  webrtc::OpusTest().Perform();
     61 }
     62 
     63 TEST(AudioCodingModuleTest, TestPacketLoss) {
     64  webrtc::PacketLossTest(1, 10, 10, 1).Perform();
     65 }
     66 
     67 TEST(AudioCodingModuleTest, TestPacketLossBurst) {
     68  webrtc::PacketLossTest(1, 10, 10, 2).Perform();
     69 }
     70 
     71 // Disabled on ios as flake, see https://crbug.com/webrtc/7057
     72 #if defined(WEBRTC_IOS)
     73 TEST(AudioCodingModuleTest, DISABLED_TestPacketLossStereo) {
     74 #else
     75 TEST(AudioCodingModuleTest, TestPacketLossStereo) {
     76 #endif
     77  webrtc::PacketLossTest(2, 10, 10, 1).Perform();
     78 }
     79 
     80 // Disabled on ios as flake, see https://crbug.com/webrtc/7057
     81 #if defined(WEBRTC_IOS)
     82 TEST(AudioCodingModuleTest, DISABLED_TestPacketLossStereoBurst) {
     83 #else
     84 TEST(AudioCodingModuleTest, TestPacketLossStereoBurst) {
     85 #endif
     86  webrtc::PacketLossTest(2, 10, 10, 2).Perform();
     87 }
     88 
     89 // The full API test is too long to run automatically on bots, but can be used
     90 // for offline testing. User interaction is needed.
     91 #ifdef ACM_TEST_FULL_API
     92 TEST(AudioCodingModuleTest, TestAPI) {
     93  webrtc::APITest().Perform();
     94 }
     95 #endif