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); |