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

Side by Side Diff: webrtc/media/engine/webrtcvoiceengine_unittest.cc

Issue 2721003002: Remove usage of VoEVolumeControl from WVoE and Audio[Send|Receive]Stream. (Closed)
Patch Set: Created 3 years, 9 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) 2008 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2008 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
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 const uint32_t kSsrc4 = 0x42; 54 const uint32_t kSsrc4 = 0x42;
55 const uint32_t kSsrcs4[] = { 1, 2, 3, 4 }; 55 const uint32_t kSsrcs4[] = { 1, 2, 3, 4 };
56 56
57 constexpr int kRtpHistoryMs = 5000; 57 constexpr int kRtpHistoryMs = 5000;
58 58
59 class FakeVoEWrapper : public cricket::VoEWrapper { 59 class FakeVoEWrapper : public cricket::VoEWrapper {
60 public: 60 public:
61 explicit FakeVoEWrapper(cricket::FakeWebRtcVoiceEngine* engine) 61 explicit FakeVoEWrapper(cricket::FakeWebRtcVoiceEngine* engine)
62 : cricket::VoEWrapper(engine, // base 62 : cricket::VoEWrapper(engine, // base
63 engine, // codec 63 engine, // codec
64 engine, // hw 64 engine) { // hw
65 engine) { // volume
66 } 65 }
67 }; 66 };
68 67
69 class MockTransmitMixer : public webrtc::voe::TransmitMixer { 68 class MockTransmitMixer : public webrtc::voe::TransmitMixer {
70 public: 69 public:
71 MockTransmitMixer() = default; 70 MockTransmitMixer() = default;
72 virtual ~MockTransmitMixer() = default; 71 virtual ~MockTransmitMixer() = default;
73 72
74 MOCK_METHOD1(EnableStereoChannelSwapping, void(bool enable)); 73 MOCK_METHOD1(EnableStereoChannelSwapping, void(bool enable));
75 }; 74 };
(...skipping 3654 matching lines...) Expand 10 before | Expand all | Expand 10 after
3730 // Without this cast, the comparison turned unsigned and, thus, failed for -1. 3729 // Without this cast, the comparison turned unsigned and, thus, failed for -1.
3731 const int num_specs = static_cast<int>(specs.size()); 3730 const int num_specs = static_cast<int>(specs.size());
3732 EXPECT_GE(find_codec({"cn", 8000, 1}), num_specs); 3731 EXPECT_GE(find_codec({"cn", 8000, 1}), num_specs);
3733 EXPECT_GE(find_codec({"cn", 16000, 1}), num_specs); 3732 EXPECT_GE(find_codec({"cn", 16000, 1}), num_specs);
3734 EXPECT_EQ(find_codec({"cn", 32000, 1}), -1); 3733 EXPECT_EQ(find_codec({"cn", 32000, 1}), -1);
3735 EXPECT_GE(find_codec({"telephone-event", 8000, 1}), num_specs); 3734 EXPECT_GE(find_codec({"telephone-event", 8000, 1}), num_specs);
3736 EXPECT_GE(find_codec({"telephone-event", 16000, 1}), num_specs); 3735 EXPECT_GE(find_codec({"telephone-event", 16000, 1}), num_specs);
3737 EXPECT_GE(find_codec({"telephone-event", 32000, 1}), num_specs); 3736 EXPECT_GE(find_codec({"telephone-event", 32000, 1}), num_specs);
3738 EXPECT_GE(find_codec({"telephone-event", 48000, 1}), num_specs); 3737 EXPECT_GE(find_codec({"telephone-event", 48000, 1}), num_specs);
3739 } 3738 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698