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

Unified Diff: webrtc/voice_engine/test/auto_test/standard/codec_test.cc

Issue 2111813002: Revert of Move RtcEventLog object from inside VoiceEngine to Call. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/voice_engine/include/voe_codec.h ('k') | webrtc/voice_engine/test/cmd_test/voe_cmd_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/voice_engine/test/auto_test/standard/codec_test.cc
diff --git a/webrtc/voice_engine/test/auto_test/standard/codec_test.cc b/webrtc/voice_engine/test/auto_test/standard/codec_test.cc
index 5a500af2df4f256b46e2d3dc31fec8d7150ffd87..3a3d83031d3e932661ecef1b4fb15c060c757cae 100644
--- a/webrtc/voice_engine/test/auto_test/standard/codec_test.cc
+++ b/webrtc/voice_engine/test/auto_test/standard/codec_test.cc
@@ -176,6 +176,30 @@
}
}
+#ifdef ENABLE_RTC_EVENT_LOG
+TEST_F(CodecTest, RtcEventLogIntegrationTest) {
+ webrtc::RtcEventLog* event_log = voe_codec_->GetEventLog();
+ ASSERT_TRUE(event_log);
+
+ // Find the name of the current test, in order to use it as a temporary
+ // filename.
+ auto test_info = ::testing::UnitTest::GetInstance()->current_test_info();
+ const std::string temp_filename = webrtc::test::OutputPath() +
+ test_info->test_case_name() +
+ test_info->name();
+ // Create a log file.
+ event_log->StartLogging(temp_filename, 1000);
+ event_log->StopLogging();
+
+ // Check if the file has been created.
+ FILE* event_file = fopen(temp_filename.c_str(), "r");
+ ASSERT_TRUE(event_file);
+ fclose(event_file);
+ // Remove the temporary file.
+ remove(temp_filename.c_str());
+}
+#endif // ENABLE_RTC_EVENT_LOG
+
// TODO(xians, phoglund): Re-enable when issue 372 is resolved.
TEST_F(CodecTest, DISABLED_ManualVerifySendCodecsForAllPacketSizes) {
for (int i = 0; i < voe_codec_->NumOfCodecs(); ++i) {
« no previous file with comments | « webrtc/voice_engine/include/voe_codec.h ('k') | webrtc/voice_engine/test/cmd_test/voe_cmd_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698