diff options
Diffstat (limited to 'voice_engine/test/auto_test/standard/call_report_test.cc')
-rw-r--r-- | voice_engine/test/auto_test/standard/call_report_test.cc | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/voice_engine/test/auto_test/standard/call_report_test.cc b/voice_engine/test/auto_test/standard/call_report_test.cc deleted file mode 100644 index ee98dc1e..00000000 --- a/voice_engine/test/auto_test/standard/call_report_test.cc +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. - * - * Use of this source code is governed by a BSD-style license - * that can be found in the LICENSE file in the root of the source - * tree. An additional intellectual property rights grant can be found - * in the file PATENTS. All contributing project authors may - * be found in the AUTHORS file in the root of the source tree. - */ - -#include "webrtc/test/testsupport/fileutils.h" -#include "webrtc/voice_engine/test/auto_test/fixtures/after_streaming_fixture.h" - -class CallReportTest : public AfterStreamingFixture { -}; - -TEST_F(CallReportTest, ResetCallReportStatisticsFailsForBadInput) { - EXPECT_EQ(-1, voe_call_report_->ResetCallReportStatistics(-2)); - EXPECT_EQ(-1, voe_call_report_->ResetCallReportStatistics(1)); -} - -TEST_F(CallReportTest, ResetCallReportStatisticsSucceedsWithCorrectInput) { - EXPECT_EQ(0, voe_call_report_->ResetCallReportStatistics(channel_)); - EXPECT_EQ(0, voe_call_report_->ResetCallReportStatistics(-1)); -} - -TEST_F(CallReportTest, EchoMetricSummarySucceeds) { - EXPECT_EQ(0, voe_apm_->SetEcMetricsStatus(true)); - Sleep(1000); - - webrtc::EchoStatistics echo_statistics; - EXPECT_EQ(0, voe_call_report_->GetEchoMetricSummary(echo_statistics)); -} - -TEST_F(CallReportTest, GetRoundTripTimeSummaryReturnsAllMinusOnesIfRtcpIsOff) { - voe_rtp_rtcp_->SetRTCPStatus(channel_, false); - - webrtc::StatVal delays; - EXPECT_EQ(0, voe_call_report_->GetRoundTripTimeSummary(channel_, delays)); - EXPECT_EQ(-1, delays.average); - EXPECT_EQ(-1, delays.min); - EXPECT_EQ(-1, delays.max); -} - -// Flaky: https://code.google.com/p/webrtc/issues/detail?id=1719 -TEST_F(CallReportTest, DISABLED_GetRoundTripTimesReturnsValuesIfRtcpIsOn) { - voe_rtp_rtcp_->SetRTCPStatus(channel_, true); - Sleep(1000); - - webrtc::StatVal delays; - EXPECT_EQ(0, voe_call_report_->GetRoundTripTimeSummary(channel_, delays)); - EXPECT_NE(-1, delays.average); - EXPECT_NE(-1, delays.min); - EXPECT_NE(-1, delays.max); -} - -TEST_F(CallReportTest, WriteReportToFileFailsOnBadInput) { - EXPECT_EQ(-1, voe_call_report_->WriteReportToFile(NULL)); -} - -TEST_F(CallReportTest, WriteReportToFileSucceedsWithCorrectFilename) { - std::string output_path = webrtc::test::OutputPath(); - std::string report_filename = output_path + "call_report.txt"; - - EXPECT_EQ(0, voe_call_report_->WriteReportToFile(report_filename.c_str())); -} |