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

Unified Diff: webrtc/audio/test/low_bandwidth_audio_test.cc

Issue 2995363002: Replace gflags usages with rtc_base/flags in all targets based on test_main (Closed)
Patch Set: Fix string use after free Created 3 years, 4 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/audio/BUILD.gn ('k') | webrtc/modules/audio_coding/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/audio/test/low_bandwidth_audio_test.cc
diff --git a/webrtc/audio/test/low_bandwidth_audio_test.cc b/webrtc/audio/test/low_bandwidth_audio_test.cc
index 55f86217492ed604c8a797bf79de8e31022a20d8..ea0cdf024ca23fd724eb61506972cf9d404ed758 100644
--- a/webrtc/audio/test/low_bandwidth_audio_test.cc
+++ b/webrtc/audio/test/low_bandwidth_audio_test.cc
@@ -10,16 +10,16 @@
#include <algorithm>
-#include "gflags/gflags.h"
#include "webrtc/audio/test/low_bandwidth_audio_test.h"
#include "webrtc/common_audio/wav_file.h"
-#include "webrtc/test/gtest.h"
+#include "webrtc/rtc_base/flags.h"
#include "webrtc/system_wrappers/include/sleep.h"
+#include "webrtc/test/gtest.h"
#include "webrtc/test/testsupport/fileutils.h"
-DEFINE_int32(sample_rate_hz, 16000,
- "Sample rate (Hz) of the produced audio files.");
+DEFINE_int(sample_rate_hz, 16000,
+ "Sample rate (Hz) of the produced audio files.");
DEFINE_bool(quick, false,
"Don't do the full audio recording. "
@@ -31,7 +31,7 @@ namespace {
constexpr int kExtraRecordTimeMs = 500;
std::string FileSampleRateSuffix() {
- return std::to_string(FLAGS_sample_rate_hz / 1000);
+ return std::to_string(FLAG_sample_rate_hz / 1000);
}
} // namespace
@@ -72,7 +72,7 @@ std::unique_ptr<test::FakeAudioDevice::Capturer>
std::unique_ptr<test::FakeAudioDevice::Renderer>
AudioQualityTest::CreateRenderer() {
return test::FakeAudioDevice::CreateBoundedWavFileWriter(
- AudioOutputFile(), FLAGS_sample_rate_hz);
+ AudioOutputFile(), FLAG_sample_rate_hz);
}
void AudioQualityTest::OnFakeAudioDevicesCreated(
@@ -112,7 +112,7 @@ void AudioQualityTest::ModifyAudioConfigs(
}
void AudioQualityTest::PerformTest() {
- if (FLAGS_quick) {
+ if (FLAG_quick) {
// Let the recording run for a small amount of time to check if it works.
SleepMs(1000);
} else {
« no previous file with comments | « webrtc/audio/BUILD.gn ('k') | webrtc/modules/audio_coding/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698