| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 #include "webrtc/voice_engine/include/voe_codec.h" | 11 #include "webrtc/voice_engine/include/voe_codec.h" |
| 12 | 12 |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 #include "webrtc/base/scoped_ptr.h" | 14 #include "webrtc/base/scoped_ptr.h" |
| 15 #include "webrtc/modules/audio_device/include/fake_audio_device.h" | 15 #include "webrtc/modules/audio_device/include/fake_audio_device.h" |
| 16 #include "webrtc/test/testsupport/gtest_disable.h" | |
| 17 #include "webrtc/voice_engine/include/voe_base.h" | 16 #include "webrtc/voice_engine/include/voe_base.h" |
| 18 #include "webrtc/voice_engine/include/voe_hardware.h" | 17 #include "webrtc/voice_engine/include/voe_hardware.h" |
| 19 #include "webrtc/voice_engine/voice_engine_defines.h" | 18 #include "webrtc/voice_engine/voice_engine_defines.h" |
| 20 | 19 |
| 21 namespace webrtc { | 20 namespace webrtc { |
| 22 namespace voe { | 21 namespace voe { |
| 23 namespace { | 22 namespace { |
| 24 | 23 |
| 25 class VoECodecTest : public ::testing::Test { | 24 class VoECodecTest : public ::testing::Test { |
| 26 protected: | 25 protected: |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // Reset to codec2 to codec1 state. | 146 // Reset to codec2 to codec1 state. |
| 148 memcpy(&codec2, &codec1, sizeof(CodecInst)); | 147 memcpy(&codec2, &codec1, sizeof(CodecInst)); |
| 149 // Test modifying the |rate|. | 148 // Test modifying the |rate|. |
| 150 codec2.rate = 0; | 149 codec2.rate = 0; |
| 151 EXPECT_FALSE(codec1 == codec2); | 150 EXPECT_FALSE(codec1 == codec2); |
| 152 } | 151 } |
| 153 | 152 |
| 154 } // namespace | 153 } // namespace |
| 155 } // namespace voe | 154 } // namespace voe |
| 156 } // namespace webrtc | 155 } // namespace webrtc |
| OLD | NEW |