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

Unified Diff: media/filters/source_buffer_stream_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/frame_processor_unittest.cc ('k') | media/filters/video_cadence_estimator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/source_buffer_stream_unittest.cc
diff --git a/media/filters/source_buffer_stream_unittest.cc b/media/filters/source_buffer_stream_unittest.cc
index 6282135634b70501c5ec9d765291003808954406..3d03ccd16867f6c662ee0fa28e3e2e31fcf045bb 100644
--- a/media/filters/source_buffer_stream_unittest.cc
+++ b/media/filters/source_buffer_stream_unittest.cc
@@ -252,8 +252,8 @@ class SourceBufferStreamTest : public testing::Test {
}
void CheckExpectedBuffers(const std::string& expected) {
- std::vector<std::string> timestamps;
- base::SplitString(expected, ' ', &timestamps);
+ std::vector<std::string> timestamps = base::SplitString(
+ expected, " ", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
std::stringstream ss;
const SourceBufferStream::Type type = stream_->GetType();
base::TimeDelta active_splice_timestamp = kNoTimestamp();
@@ -484,8 +484,8 @@ class SourceBufferStreamTest : public testing::Test {
// id to use for that and subsequent preroll appends is incremented by one.
// The config id for non-splice frame appends will not be affected.
BufferQueue StringToBufferQueue(const std::string& buffers_to_append) {
- std::vector<std::string> timestamps;
- base::SplitString(buffers_to_append, ' ', &timestamps);
+ std::vector<std::string> timestamps = base::SplitString(
+ buffers_to_append, " ", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
CHECK_GT(timestamps.size(), 0u);
@@ -549,8 +549,8 @@ class SourceBufferStreamTest : public testing::Test {
timestamps[i] = timestamps[i].substr(0, duration_pos);
}
- std::vector<std::string> buffer_timestamps;
- base::SplitString(timestamps[i], '|', &buffer_timestamps);
+ std::vector<std::string> buffer_timestamps = base::SplitString(
+ timestamps[i], "|", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
if (buffer_timestamps.size() == 1)
buffer_timestamps.push_back(buffer_timestamps[0]);
« no previous file with comments | « media/filters/frame_processor_unittest.cc ('k') | media/filters/video_cadence_estimator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698