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 #ifndef WEBRTC_COMMON_AUDIO_VAD_VAD_UNITTEST_H | 11 #ifndef WEBRTC_COMMON_AUDIO_VAD_VAD_UNITTEST_H |
12 #define WEBRTC_COMMON_AUDIO_VAD_VAD_UNITTEST_H | 12 #define WEBRTC_COMMON_AUDIO_VAD_VAD_UNITTEST_H |
13 | 13 |
14 #include <stddef.h> // size_t | 14 #include <stddef.h> // size_t |
15 | 15 |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "webrtc/base/gtest.h" |
17 | 17 |
kjellander_webrtc
2016/09/23 12:32:37
remove blank line
| |
18 #include "webrtc/typedefs.h" | 18 #include "webrtc/typedefs.h" |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 // Modes we support | 22 // Modes we support |
23 const int kModes[] = { 0, 1, 2, 3 }; | 23 const int kModes[] = { 0, 1, 2, 3 }; |
24 const size_t kModesSize = sizeof(kModes) / sizeof(*kModes); | 24 const size_t kModesSize = sizeof(kModes) / sizeof(*kModes); |
25 | 25 |
26 // Rates we support. | 26 // Rates we support. |
27 const int kRates[] = { 8000, 12000, 16000, 24000, 32000, 48000 }; | 27 const int kRates[] = { 8000, 12000, 16000, 24000, 32000, 48000 }; |
(...skipping 11 matching lines...) Expand all Loading... | |
39 protected: | 39 protected: |
40 VadTest(); | 40 VadTest(); |
41 virtual void SetUp(); | 41 virtual void SetUp(); |
42 virtual void TearDown(); | 42 virtual void TearDown(); |
43 | 43 |
44 // Returns true if the rate and frame length combination is valid. | 44 // Returns true if the rate and frame length combination is valid. |
45 bool ValidRatesAndFrameLengths(int rate, size_t frame_length); | 45 bool ValidRatesAndFrameLengths(int rate, size_t frame_length); |
46 }; | 46 }; |
47 | 47 |
48 #endif // WEBRTC_COMMON_AUDIO_VAD_VAD_UNITTEST_H | 48 #endif // WEBRTC_COMMON_AUDIO_VAD_VAD_UNITTEST_H |
OLD | NEW |