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

Unified Diff: webrtc/modules/remote_bitrate_estimator/test/bwe_test.cc

Issue 2675723002: Remove all occurrences of "using std::string". (Closed)
Patch Set: Created 3 years, 11 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/remote_bitrate_estimator/test/bwe_test.cc
diff --git a/webrtc/modules/remote_bitrate_estimator/test/bwe_test.cc b/webrtc/modules/remote_bitrate_estimator/test/bwe_test.cc
index 40711106ccb6464460d817531189434306dd8777..13959fc0c5924d73f10f039bfb2105e79ee9ca7d 100644
--- a/webrtc/modules/remote_bitrate_estimator/test/bwe_test.cc
+++ b/webrtc/modules/remote_bitrate_estimator/test/bwe_test.cc
@@ -22,7 +22,6 @@
#include "webrtc/system_wrappers/include/clock.h"
#include "webrtc/test/testsupport/perf_test.h"
-using std::string;
using std::vector;
namespace webrtc {
@@ -113,8 +112,9 @@ BweTest::~BweTest() {
void BweTest::SetUp() {
const ::testing::TestInfo* const test_info =
::testing::UnitTest::GetInstance()->current_test_info();
- string test_name =
- string(test_info->test_case_name()) + "_" + string(test_info->name());
+ std::string test_name =
+ std::string(test_info->test_case_name()) + "_" +
+ std::string(test_info->name());
BWE_TEST_LOGGING_GLOBAL_CONTEXT(test_name);
BWE_TEST_LOGGING_GLOBAL_ENABLE(false);
}
@@ -181,10 +181,10 @@ void BweTest::RunFor(int64_t time_ms) {
}
}
-string BweTest::GetTestName() const {
+std::string BweTest::GetTestName() const {
const ::testing::TestInfo* const test_info =
::testing::UnitTest::GetInstance()->current_test_info();
- return string(test_info->name());
+ return std::string(test_info->name());
}
void BweTest::PrintResults(double max_throughput_kbps,

Powered by Google App Engine
This is Rietveld 408576698