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

Side by Side Diff: webrtc/modules/audio_coding/neteq/mock/mock_expand.h

Issue 1290113002: NetEq: Implement logging of Delayed Packet Outage Events (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rename InputAudioFile::Move to InputAudioFile::Seek Created 5 years, 4 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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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_MODULES_AUDIO_CODING_NETEQ_MOCK_MOCK_EXPAND_H_ 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_MOCK_MOCK_EXPAND_H_
12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_MOCK_MOCK_EXPAND_H_ 12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_MOCK_MOCK_EXPAND_H_
13 13
14 #include "webrtc/modules/audio_coding/neteq/expand.h" 14 #include "webrtc/modules/audio_coding/neteq/expand.h"
15 15
16 #include "testing/gmock/include/gmock/gmock.h" 16 #include "testing/gmock/include/gmock/gmock.h"
17 17
18 namespace webrtc { 18 namespace webrtc {
19 19
20 class MockExpand : public Expand { 20 class MockExpand : public Expand {
21 public: 21 public:
22 MockExpand(BackgroundNoise* background_noise, 22 MockExpand(BackgroundNoise* background_noise,
23 SyncBuffer* sync_buffer, 23 SyncBuffer* sync_buffer,
24 RandomVector* random_vector, 24 RandomVector* random_vector,
25 StatisticsCalculator* statistics,
25 int fs, 26 int fs,
26 size_t num_channels) 27 size_t num_channels)
27 : Expand(background_noise, sync_buffer, random_vector, fs, num_channels) { 28 : Expand(background_noise,
28 } 29 sync_buffer,
30 random_vector,
31 statistics,
32 fs,
33 num_channels) {}
29 virtual ~MockExpand() { Die(); } 34 virtual ~MockExpand() { Die(); }
30 MOCK_METHOD0(Die, void()); 35 MOCK_METHOD0(Die, void());
31 MOCK_METHOD0(Reset, 36 MOCK_METHOD0(Reset,
32 void()); 37 void());
33 MOCK_METHOD1(Process, 38 MOCK_METHOD1(Process,
34 int(AudioMultiVector* output)); 39 int(AudioMultiVector* output));
35 MOCK_METHOD0(SetParametersForNormalAfterExpand, 40 MOCK_METHOD0(SetParametersForNormalAfterExpand,
36 void()); 41 void());
37 MOCK_METHOD0(SetParametersForMergeAfterExpand, 42 MOCK_METHOD0(SetParametersForMergeAfterExpand,
38 void()); 43 void());
39 MOCK_CONST_METHOD0(overlap_length, 44 MOCK_CONST_METHOD0(overlap_length,
40 size_t()); 45 size_t());
41 }; 46 };
42 47
43 } // namespace webrtc 48 } // namespace webrtc
44 49
45 namespace webrtc { 50 namespace webrtc {
46 51
47 class MockExpandFactory : public ExpandFactory { 52 class MockExpandFactory : public ExpandFactory {
48 public: 53 public:
49 MOCK_CONST_METHOD5(Create, 54 MOCK_CONST_METHOD6(Create,
50 Expand*(BackgroundNoise* background_noise, 55 Expand*(BackgroundNoise* background_noise,
51 SyncBuffer* sync_buffer, 56 SyncBuffer* sync_buffer,
52 RandomVector* random_vector, 57 RandomVector* random_vector,
58 StatisticsCalculator* statistics,
53 int fs, 59 int fs,
54 size_t num_channels)); 60 size_t num_channels));
55 }; 61 };
56 62
57 } // namespace webrtc 63 } // namespace webrtc
58 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_MOCK_MOCK_EXPAND_H_ 64 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_MOCK_MOCK_EXPAND_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/neteq/merge_unittest.cc ('k') | webrtc/modules/audio_coding/neteq/neteq_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698