tor-browser

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

comfort_noise_unittest.cc (984B)


      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 // Unit tests for ComfortNoise class.
     12 
     13 #include "modules/audio_coding/neteq/comfort_noise.h"
     14 
     15 #include "modules/audio_coding/neteq/mock/mock_decoder_database.h"
     16 #include "modules/audio_coding/neteq/sync_buffer.h"
     17 #include "test/gmock.h"
     18 #include "test/gtest.h"
     19 
     20 namespace webrtc {
     21 
     22 TEST(ComfortNoise, CreateAndDestroy) {
     23  int fs = 8000;
     24  MockDecoderDatabase db;
     25  SyncBuffer sync_buffer(1, 1000);
     26  ComfortNoise cn(fs, &db, &sync_buffer);
     27  EXPECT_CALL(db, Die());  // Called when `db` goes out of scope.
     28 }
     29 
     30 // TODO(hlundin): Write more tests.
     31 
     32 }  // namespace webrtc