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

Side by Side Diff: webrtc/voice_engine/test/auto_test/fakes/loudest_filter.h

Issue 2813373002: Don't make a top-level namespace called "voetest" (Closed)
Patch Set: fix comments Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_VOICE_ENGINE_TEST_AUTO_TEST_FAKES_LOUDEST_FILTER_H_ 11 #ifndef WEBRTC_VOICE_ENGINE_TEST_AUTO_TEST_FAKES_LOUDEST_FILTER_H_
12 #define WEBRTC_VOICE_ENGINE_TEST_AUTO_TEST_FAKES_LOUDEST_FILTER_H_ 12 #define WEBRTC_VOICE_ENGINE_TEST_AUTO_TEST_FAKES_LOUDEST_FILTER_H_
13 13
14 #include <map> 14 #include <map>
15 #include "webrtc/base/timeutils.h" 15 #include "webrtc/base/timeutils.h"
16 #include "webrtc/common_types.h" 16 #include "webrtc/common_types.h"
17 17
18 namespace webrtc {
18 namespace voetest { 19 namespace voetest {
19 20
20 class LoudestFilter { 21 class LoudestFilter {
21 public: 22 public:
22 /* ForwardThisPacket() 23 /* ForwardThisPacket()
23 * Decide whether to forward a RTP packet, given its header. 24 * Decide whether to forward a RTP packet, given its header.
24 * 25 *
25 * Input: 26 * Input:
26 * rtp_header : Header of the RTP packet of interest. 27 * rtp_header : Header of the RTP packet of interest.
27 */ 28 */
(...skipping 13 matching lines...) Expand all
41 unsigned int FindQuietestStream(); 42 unsigned int FindQuietestStream();
42 43
43 // Keeps the streams being forwarded in pair<SSRC, Status>. 44 // Keeps the streams being forwarded in pair<SSRC, Status>.
44 std::map<unsigned int, Status> stream_levels_; 45 std::map<unsigned int, Status> stream_levels_;
45 46
46 const int32_t kStreamTimeOutMs = 5000; 47 const int32_t kStreamTimeOutMs = 5000;
47 const size_t kMaxMixSize = 3; 48 const size_t kMaxMixSize = 3;
48 const int kInvalidAudioLevel = 128; 49 const int kInvalidAudioLevel = 128;
49 }; 50 };
50 51
51
52 } // namespace voetest 52 } // namespace voetest
53 } // namespace webrtc
53 54
54 #endif // WEBRTC_VOICE_ENGINE_TEST_AUTO_TEST_FAKES_LOUDEST_FILTER_H_ 55 #endif // WEBRTC_VOICE_ENGINE_TEST_AUTO_TEST_FAKES_LOUDEST_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698