Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(706)

Unified Diff: webrtc/voice_engine/test/auto_test/fakes/fake_media_process.h

Issue 2645033002: Remove VoEExternalMedia interface. (Closed)
Patch Set: bad merge Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/voice_engine/test/auto_test/fakes/fake_media_process.h
diff --git a/webrtc/voice_engine/test/auto_test/fakes/fake_media_process.h b/webrtc/voice_engine/test/auto_test/fakes/fake_media_process.h
deleted file mode 100644
index 9e82fbc0a5b3419bd4d0a8a7cfe255458a4e985b..0000000000000000000000000000000000000000
--- a/webrtc/voice_engine/test/auto_test/fakes/fake_media_process.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
- *
- * Use of this source code is governed by a BSD-style license
- * that can be found in the LICENSE file in the root of the source
- * tree. An additional intellectual property rights grant can be found
- * in the file PATENTS. All contributing project authors may
- * be found in the AUTHORS file in the root of the source tree.
- */
-#ifndef VOICE_ENGINE_MAIN_TEST_AUTO_TEST_FAKE_MEDIA_PROCESS_H_
-#define VOICE_ENGINE_MAIN_TEST_AUTO_TEST_FAKE_MEDIA_PROCESS_H_
-
-#include <math.h>
-
-class FakeMediaProcess : public webrtc::VoEMediaProcess {
- public:
- FakeMediaProcess() : frequency(0) {}
- virtual void Process(int channel,
- const webrtc::ProcessingTypes type,
- int16_t audio_10ms[],
- size_t length,
- int sampling_freq_hz,
- bool stereo) {
- for (size_t i = 0; i < length; i++) {
- if (!stereo) {
- audio_10ms[i] = static_cast<int16_t>(audio_10ms[i] *
- sin(2.0 * 3.14 * frequency * 400.0 / sampling_freq_hz));
- } else {
- // Interleaved stereo.
- audio_10ms[2 * i] = static_cast<int16_t> (
- audio_10ms[2 * i] * sin(2.0 * 3.14 *
- frequency * 400.0 / sampling_freq_hz));
- audio_10ms[2 * i + 1] = static_cast<int16_t> (
- audio_10ms[2 * i + 1] * sin(2.0 * 3.14 *
- frequency * 400.0 / sampling_freq_hz));
- }
- frequency++;
- }
- }
-
- private:
- int frequency;
-};
-
-#endif // VOICE_ENGINE_MAIN_TEST_AUTO_TEST_FAKE_MEDIA_PROCESS_H_
« no previous file with comments | « webrtc/voice_engine/output_mixer.cc ('k') | webrtc/voice_engine/test/auto_test/fixtures/before_initialization_fixture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698