Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Side by Side Diff: webrtc/modules/rtp_rtcp/test/testAPI/test_api_audio.cc

Issue 1506823002: [rtp_rtcp] fixed namespaces lint warnings (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <algorithm> 11 #include <algorithm>
12 #include <vector> 12 #include <vector>
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 #include "webrtc/modules/rtp_rtcp/test/testAPI/test_api.h" 15 #include "webrtc/modules/rtp_rtcp/test/testAPI/test_api.h"
16 16
17 #include "webrtc/common_types.h" 17 #include "webrtc/common_types.h"
18 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" 18 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h"
19 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" 19 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
20 #include "webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h" 20 #include "webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h"
21 21
22 using namespace webrtc; 22 namespace webrtc {
23 23 namespace {
24 #define test_rate 64000u 24 #define test_rate 64000u
25 25
26 class VerifyingAudioReceiver : public NullRtpData { 26 class VerifyingAudioReceiver : public NullRtpData {
27 public: 27 public:
28 int32_t OnReceivedPayloadData( 28 int32_t OnReceivedPayloadData(
29 const uint8_t* payloadData, 29 const uint8_t* payloadData,
30 const size_t payloadSize, 30 const size_t payloadSize,
31 const webrtc::WebRtcRTPHeader* rtpHeader) override { 31 const webrtc::WebRtcRTPHeader* rtpHeader) override {
32 if (rtpHeader->header.payloadType == 98 || 32 if (rtpHeader->header.payloadType == 98 ||
33 rtpHeader->header.payloadType == 99) { 33 rtpHeader->header.payloadType == 99) {
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 } 342 }
343 EXPECT_EQ(0, module1->SendTelephoneEventOutband(32, 9000, 10)); 343 EXPECT_EQ(0, module1->SendTelephoneEventOutband(32, 9000, 10));
344 344
345 for (;timeStamp <= 740 * 160; timeStamp += 160) { 345 for (;timeStamp <= 740 * 160; timeStamp += 160) {
346 EXPECT_EQ(0, module1->SendOutgoingData(webrtc::kAudioFrameSpeech, 96, 346 EXPECT_EQ(0, module1->SendOutgoingData(webrtc::kAudioFrameSpeech, 96,
347 timeStamp, -1, test, 4)); 347 timeStamp, -1, test, 4));
348 fake_clock.AdvanceTimeMilliseconds(20); 348 fake_clock.AdvanceTimeMilliseconds(20);
349 module1->Process(); 349 module1->Process();
350 } 350 }
351 } 351 }
352
353 } // namespace
354 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/test/testAPI/test_api.cc ('k') | webrtc/modules/rtp_rtcp/test/testAPI/test_api_rtcp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698