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

Unified Diff: media/filters/video_cadence_estimator_unittest.cc

Issue 1272823003: Update SplitString calls to new form (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « media/filters/source_buffer_stream_unittest.cc ('k') | media/formats/mp4/avc_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/video_cadence_estimator_unittest.cc
diff --git a/media/filters/video_cadence_estimator_unittest.cc b/media/filters/video_cadence_estimator_unittest.cc
index d96700436c6110d616bdb1c9e4e0cf9176ea4e25..845bb3afb31d555453688182e1cc0bba388a9b42 100644
--- a/media/filters/video_cadence_estimator_unittest.cc
+++ b/media/filters/video_cadence_estimator_unittest.cc
@@ -25,13 +25,13 @@ static base::TimeDelta Interval(double hertz) {
}
std::vector<int> CreateCadenceFromString(const std::string& cadence) {
- std::vector<std::string> tokens;
CHECK_EQ('[', cadence[0]);
CHECK_EQ(']', cadence[cadence.length() - 1]);
- base::SplitString(cadence.substr(1, cadence.length() - 2), ':', &tokens);
std::vector<int> result;
- for (const auto& token : tokens) {
+ for (const std::string& token :
+ base::SplitString(cadence.substr(1, cadence.length() - 2),
+ ":", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL)) {
int cadence_value = 0;
CHECK(base::StringToInt(token, &cadence_value)) << token;
result.push_back(cadence_value);
« no previous file with comments | « media/filters/source_buffer_stream_unittest.cc ('k') | media/formats/mp4/avc_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698