From 602844aa5e2c0685fb4fcb579f3f54b2a48a1c8b Mon Sep 17 00:00:00 2001 From: nisse Date: Fri, 10 Jun 2016 04:41:06 -0700 Subject: [PATCH] Delete some unused header files. NOTRY=True # two of the androids bots are not cooperating BUG= Review-Url: https://codereview.webrtc.org/2057533002 Cr-Commit-Position: refs/heads/master@{#13099} --- .../video_capture/video_capture_internal.h | 27 ----------- .../modules/video_coding/test/release_test.h | 17 ------- webrtc/tools/agc/fake_agc.h | 46 ------------------- 3 files changed, 90 deletions(-) delete mode 100644 webrtc/modules/video_capture/video_capture_internal.h delete mode 100644 webrtc/modules/video_coding/test/release_test.h delete mode 100644 webrtc/tools/agc/fake_agc.h diff --git a/webrtc/modules/video_capture/video_capture_internal.h b/webrtc/modules/video_capture/video_capture_internal.h deleted file mode 100644 index 1a90af130a..0000000000 --- a/webrtc/modules/video_capture/video_capture_internal.h +++ /dev/null @@ -1,27 +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 WEBRTC_MODULES_VIDEO_CAPTURE_VIDEO_CAPTURE_INTERNAL_H_ -#define WEBRTC_MODULES_VIDEO_CAPTURE_VIDEO_CAPTURE_INTERNAL_H_ - -#ifdef ANDROID -#include - -namespace webrtc { - -// In order to be able to use the internal webrtc video capture -// for android, the jvm objects must be set via this method. -int32_t SetCaptureAndroidVM(JavaVM* javaVM, jobject context); - -} // namespace webrtc - -#endif // ANDROID - -#endif // WEBRTC_MODULES_VIDEO_CAPTURE_VIDEO_CAPTURE_INTERNAL_H_ diff --git a/webrtc/modules/video_coding/test/release_test.h b/webrtc/modules/video_coding/test/release_test.h deleted file mode 100644 index ab9b2159d9..0000000000 --- a/webrtc/modules/video_coding/test/release_test.h +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) 2011 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 WEBRTC_MODULES_VIDEO_CODING_TEST_RELEASE_TEST_H_ -#define WEBRTC_MODULES_VIDEO_CODING_TEST_RELEASE_TEST_H_ - -int ReleaseTest(); -int ReleaseTestPart2(); - -#endif // WEBRTC_MODULES_VIDEO_CODING_TEST_RELEASE_TEST_H_ diff --git a/webrtc/tools/agc/fake_agc.h b/webrtc/tools/agc/fake_agc.h deleted file mode 100644 index 6b39cd7c3b..0000000000 --- a/webrtc/tools/agc/fake_agc.h +++ /dev/null @@ -1,46 +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 WEBRTC_TOOLS_AGC_FAKE_AGC_H_ -#define WEBRTC_TOOLS_AGC_FAKE_AGC_H_ - -#include "webrtc/modules/audio_processing/agc/agc.h" - -namespace webrtc { - -class FakeAgc : public Agc { - public: - FakeAgc() - : counter_(0), - volume_(kMaxVolume / 2) { - } - - virtual int Process(const AudioFrame& audio_frame) { - const int kUpdateIntervalFrames = 10; - const int kMaxVolume = 255; - if (counter_ % kUpdateIntervalFrames == 0) { - volume_ = (++volume_) % kMaxVolume; - } - counter_++; - return 0; - } - - virtual int FakeAgc::MicVolume() { - return volume_; - } - - private: - int counter_; - int volume_; -}; - -} // namespace webrtc - -#endif // WEBRTC_TOOLS_AGC_FAKE_AGC_H_