Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 77 const size_t num_channels_; | 77 const size_t num_channels_; |
| 78 bool fec_enabled_; | 78 bool fec_enabled_; |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 class NetEqNetworkStatsTest : public NetEqExternalDecoderTest { | 81 class NetEqNetworkStatsTest : public NetEqExternalDecoderTest { |
| 82 public: | 82 public: |
| 83 static const int kPayloadSizeByte = 30; | 83 static const int kPayloadSizeByte = 30; |
| 84 static const int kFrameSizeMs = 20; | 84 static const int kFrameSizeMs = 20; |
| 85 static const int kMaxOutputSize = 960; // 10 ms * 48 kHz * 2 channels. | 85 static const int kMaxOutputSize = 960; // 10 ms * 48 kHz * 2 channels. |
| 86 | 86 |
| 87 #if defined(WEBRTC_WIN) | |
| 88 // 'IGNORE' is defined in winbase.h, so we'll hit a compilation issue | |
| 89 // if we don't undef this macro before using the name in the logic enum. | |
| 90 #undef IGNORE | |
| 91 #endif | |
| 92 | |
| 87 enum logic { | 93 enum logic { |
|
pbos-webrtc
2016/01/19 13:04:41
Can we rename the enum in here instead? Pref kIgno
tommi
2016/01/19 13:57:15
Done.
| |
| 88 IGNORE, | 94 IGNORE, |
| 89 EQUAL, | 95 EQUAL, |
| 90 SMALLER_THAN, | 96 SMALLER_THAN, |
| 91 LARGER_THAN, | 97 LARGER_THAN, |
| 92 }; | 98 }; |
| 93 | 99 |
| 94 struct NetEqNetworkStatsCheck { | 100 struct NetEqNetworkStatsCheck { |
| 95 logic current_buffer_size_ms; | 101 logic current_buffer_size_ms; |
| 96 logic preferred_buffer_size_ms; | 102 logic preferred_buffer_size_ms; |
| 97 logic jitter_peaks_found; | 103 logic jitter_peaks_found; |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 291 test.NoiseExpansionTest(); | 297 test.NoiseExpansionTest(); |
| 292 EXPECT_CALL(decoder, Die()).Times(1); | 298 EXPECT_CALL(decoder, Die()).Times(1); |
| 293 } | 299 } |
| 294 | 300 |
| 295 } // namespace test | 301 } // namespace test |
| 296 } // namespace webrtc | 302 } // namespace webrtc |
| 297 | 303 |
| 298 | 304 |
| 299 | 305 |
| 300 | 306 |
| OLD | NEW |