OLD | NEW |
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 const uint32_t kSsrcW = 0x02; | 56 const uint32_t kSsrcW = 0x02; |
57 const uint32_t kSsrcs4[] = { 11, 200, 30, 44 }; | 57 const uint32_t kSsrcs4[] = { 11, 200, 30, 44 }; |
58 | 58 |
59 constexpr int kRtpHistoryMs = 5000; | 59 constexpr int kRtpHistoryMs = 5000; |
60 | 60 |
61 class FakeVoEWrapper : public cricket::VoEWrapper { | 61 class FakeVoEWrapper : public cricket::VoEWrapper { |
62 public: | 62 public: |
63 explicit FakeVoEWrapper(cricket::FakeWebRtcVoiceEngine* engine) | 63 explicit FakeVoEWrapper(cricket::FakeWebRtcVoiceEngine* engine) |
64 : cricket::VoEWrapper(engine, // base | 64 : cricket::VoEWrapper(engine, // base |
65 engine, // codec | 65 engine, // codec |
66 engine, // hw | 66 engine) { // hw |
67 engine) { // volume | |
68 } | 67 } |
69 }; | 68 }; |
70 | 69 |
71 class MockTransmitMixer : public webrtc::voe::TransmitMixer { | 70 class MockTransmitMixer : public webrtc::voe::TransmitMixer { |
72 public: | 71 public: |
73 MockTransmitMixer() = default; | 72 MockTransmitMixer() = default; |
74 virtual ~MockTransmitMixer() = default; | 73 virtual ~MockTransmitMixer() = default; |
75 | 74 |
76 MOCK_METHOD1(EnableStereoChannelSwapping, void(bool enable)); | 75 MOCK_METHOD1(EnableStereoChannelSwapping, void(bool enable)); |
77 }; | 76 }; |
(...skipping 3721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3799 // Without this cast, the comparison turned unsigned and, thus, failed for -1. | 3798 // Without this cast, the comparison turned unsigned and, thus, failed for -1. |
3800 const int num_specs = static_cast<int>(specs.size()); | 3799 const int num_specs = static_cast<int>(specs.size()); |
3801 EXPECT_GE(find_codec({"cn", 8000, 1}), num_specs); | 3800 EXPECT_GE(find_codec({"cn", 8000, 1}), num_specs); |
3802 EXPECT_GE(find_codec({"cn", 16000, 1}), num_specs); | 3801 EXPECT_GE(find_codec({"cn", 16000, 1}), num_specs); |
3803 EXPECT_EQ(find_codec({"cn", 32000, 1}), -1); | 3802 EXPECT_EQ(find_codec({"cn", 32000, 1}), -1); |
3804 EXPECT_GE(find_codec({"telephone-event", 8000, 1}), num_specs); | 3803 EXPECT_GE(find_codec({"telephone-event", 8000, 1}), num_specs); |
3805 EXPECT_GE(find_codec({"telephone-event", 16000, 1}), num_specs); | 3804 EXPECT_GE(find_codec({"telephone-event", 16000, 1}), num_specs); |
3806 EXPECT_GE(find_codec({"telephone-event", 32000, 1}), num_specs); | 3805 EXPECT_GE(find_codec({"telephone-event", 32000, 1}), num_specs); |
3807 EXPECT_GE(find_codec({"telephone-event", 48000, 1}), num_specs); | 3806 EXPECT_GE(find_codec({"telephone-event", 48000, 1}), num_specs); |
3808 } | 3807 } |
OLD | NEW |