OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 <stddef.h> | 11 #include "webrtc/modules/audio_coding/neteq/tools/audio_sink.h" |
12 #include <stdint.h> | |
13 | |
14 #include "webrtc/p2p/base/stun.h" | |
15 | 12 |
16 namespace webrtc { | 13 namespace webrtc { |
17 void FuzzOneInput(const uint8_t* data, size_t size) { | 14 namespace test { |
18 const char* message = reinterpret_cast<const char*>(data); | |
19 | 15 |
20 cricket::StunMessage::ValidateFingerprint(message, size); | 16 // Moving this definition out fixes chromium-style errors: virtual |
hlundin-webrtc
2016/08/10 11:33:14
You can skip this comment. No need to document why
| |
21 cricket::StunMessage::ValidateMessageIntegrity(message, size, ""); | 17 // methods with non-empty bodies shouldn't be declared inline |
18 bool AudioSinkFork::WriteArray(const int16_t* audio, size_t num_samples) { | |
19 return left_sink_->WriteArray(audio, num_samples) && | |
20 right_sink_->WriteArray(audio, num_samples); | |
22 } | 21 } |
22 } // namespace test | |
aleloi
2016/08/10 10:14:01
It's a new file. The diff is wrong. It has the met
hlundin-webrtc
2016/08/10 11:33:15
Acknowledged. It doesn't matter, but FYI, you can
| |
23 } // namespace webrtc | 23 } // namespace webrtc |
OLD | NEW |