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

Unified Diff: webrtc/voice_engine/file_player_unittests.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/voice_engine/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/voice_engine/file_player_unittests.cc
diff --git a/webrtc/voice_engine/file_player_unittests.cc b/webrtc/voice_engine/file_player_unittests.cc
index 38ee987c12f8d93f859d92a7effce38b10160b04..8762957a4cc9d78e55145ed5c0fdfd0a7a9a6769 100644
--- a/webrtc/voice_engine/file_player_unittests.cc
+++ b/webrtc/voice_engine/file_player_unittests.cc
@@ -17,7 +17,7 @@
#include <memory>
#include <string>
-#include "gflags/gflags.h"
+#include "webrtc/rtc_base/flags.h"
#include "webrtc/rtc_base/md5digest.h"
#include "webrtc/rtc_base/stringencode.h"
#include "webrtc/test/gtest.h"
@@ -38,7 +38,7 @@ class FilePlayerTest : public ::testing::Test {
output_file_(NULL) {}
void SetUp() override {
- if (FLAGS_file_player_output) {
+ if (FLAG_file_player_output) {
std::string output_file =
webrtc::test::OutputPath() + "file_player_unittest_out.pcm";
output_file_ = fopen(output_file.c_str(), "wb");
@@ -64,7 +64,7 @@ class FilePlayerTest : public ::testing::Test {
EXPECT_EQ(
0, player_->Get10msAudioFromFile(out, &num_samples, kSampleRateHz));
checksum.Update(out, num_samples * sizeof(out[0]));
- if (FLAGS_file_player_output) {
+ if (FLAG_file_player_output) {
ASSERT_EQ(num_samples,
fwrite(out, sizeof(out[0]), num_samples, output_file_));
}
« no previous file with comments | « webrtc/voice_engine/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698