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

Side by Side Diff: webrtc/modules/audio_device/ios/audio_device_unittest_ios.cc

Issue 1335923002: Add RTC_ prefix to (D)CHECKs and related macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 5 years, 3 months 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) 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 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 // is registered in this test. 620 // is registered in this test.
621 TEST_F(AudioDeviceTest, StartStopRecording) { 621 TEST_F(AudioDeviceTest, StartStopRecording) {
622 StartRecording(); 622 StartRecording();
623 StopRecording(); 623 StopRecording();
624 StartRecording(); 624 StartRecording();
625 StopRecording(); 625 StopRecording();
626 } 626 }
627 627
628 // Verify that calling StopPlayout() will leave us in an uninitialized state 628 // Verify that calling StopPlayout() will leave us in an uninitialized state
629 // which will require a new call to InitPlayout(). This test does not call 629 // which will require a new call to InitPlayout(). This test does not call
630 // StartPlayout() while being uninitialized since doing so will hit a DCHECK. 630 // StartPlayout() while being uninitialized since doing so will hit a
631 // RTC_DCHECK.
631 TEST_F(AudioDeviceTest, StopPlayoutRequiresInitToRestart) { 632 TEST_F(AudioDeviceTest, StopPlayoutRequiresInitToRestart) {
632 EXPECT_EQ(0, audio_device()->InitPlayout()); 633 EXPECT_EQ(0, audio_device()->InitPlayout());
633 EXPECT_EQ(0, audio_device()->StartPlayout()); 634 EXPECT_EQ(0, audio_device()->StartPlayout());
634 EXPECT_EQ(0, audio_device()->StopPlayout()); 635 EXPECT_EQ(0, audio_device()->StopPlayout());
635 EXPECT_FALSE(audio_device()->PlayoutIsInitialized()); 636 EXPECT_FALSE(audio_device()->PlayoutIsInitialized());
636 } 637 }
637 638
638 // Start playout and verify that the native audio layer starts asking for real 639 // Start playout and verify that the native audio layer starts asking for real
639 // audio samples to play out using the NeedMorePlayData callback. 640 // audio samples to play out using the NeedMorePlayData callback.
640 TEST_F(AudioDeviceTest, StartPlayoutVerifyCallbacks) { 641 TEST_F(AudioDeviceTest, StartPlayoutVerifyCallbacks) {
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 StopPlayout(); 778 StopPlayout();
778 StopRecording(); 779 StopRecording();
779 // Verify that the correct number of transmitted impulses are detected. 780 // Verify that the correct number of transmitted impulses are detected.
780 EXPECT_EQ(latency_audio_stream->num_latency_values(), 781 EXPECT_EQ(latency_audio_stream->num_latency_values(),
781 static_cast<size_t>( 782 static_cast<size_t>(
782 kImpulseFrequencyInHz * kMeasureLatencyTimeInSec - 1)); 783 kImpulseFrequencyInHz * kMeasureLatencyTimeInSec - 1));
783 latency_audio_stream->PrintResults(); 784 latency_audio_stream->PrintResults();
784 } 785 }
785 786
786 } // namespace webrtc 787 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_device/ios/audio_device_ios.mm ('k') | webrtc/modules/audio_device/linux/audio_device_pulse_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698