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

Unified Diff: webrtc/modules/audio_processing/transient/transient_detector_unittest.cc

Issue 2054373002: FileWrapper[Impl] modifications and actually remove the "Impl" class. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix use of ASSERT instead of ASSERT_TRUE in test 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
Index: webrtc/modules/audio_processing/transient/transient_detector_unittest.cc
diff --git a/webrtc/modules/audio_processing/transient/transient_detector_unittest.cc b/webrtc/modules/audio_processing/transient/transient_detector_unittest.cc
index 18bb42e0eb6739f17b227e7379165ef4588df8f1..fedddb7d8f98d0bc65eefe15c6d44f339c26727d 100644
--- a/webrtc/modules/audio_processing/transient/transient_detector_unittest.cc
+++ b/webrtc/modules/audio_processing/transient/transient_detector_unittest.cc
@@ -53,11 +53,9 @@ TEST(TransientDetectorTest, CorrectnessBasedOnFiles) {
detect_file->OpenFile(
test::ResourcePath(detect_file_name.str(), "dat").c_str(),
- true, // Read only.
- false, // No loop.
- false); // No text.
+ true); // Read only.
- bool file_opened = detect_file->Open();
+ bool file_opened = detect_file->is_open();
ASSERT_TRUE(file_opened) << "File could not be opened.\n"
<< detect_file_name.str().c_str();
@@ -70,9 +68,7 @@ TEST(TransientDetectorTest, CorrectnessBasedOnFiles) {
audio_file->OpenFile(
test::ResourcePath(audio_file_name.str(), "pcm").c_str(),
- true, // Read only.
- false, // No loop.
- false); // No text.
+ true); // Read only.
// Create detector.
TransientDetector detector(sample_rate_hz);

Powered by Google App Engine
This is Rietveld 408576698