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, ' ', ×tamps); |
+ 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, ' ', ×tamps); |
+ 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]); |