chromium/remoting/protocol/webrtc_audio_source_adapter_unittest.cc

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "remoting/protocol/webrtc_audio_source_adapter.h"

#include <numeric>
#include <vector>

#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "remoting/proto/audio.pb.h"
#include "remoting/protocol/fake_audio_source.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/webrtc/api/media_stream_interface.h"
#include "third_party/webrtc/rtc_base/ref_count.h"
#include "third_party/webrtc/rtc_base/ref_counted_object.h"

namespace remoting::protocol {

namespace {

const int kSampleRate =;
const int kBytesPerSample =;
const int kChannels =;
constexpr auto kFrameDuration =;

class FakeAudioSink : public webrtc::AudioTrackSinkInterface {};

}  // namespace

class WebrtcAudioSourceAdapterTest : public testing::Test {};

TEST_F(WebrtcAudioSourceAdapterTest, PartialFrames) {}

}  // namespace remoting::protocol