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

Unified Diff: media/filters/source_buffer_stream_unittest.cc

Issue 1182183003: Move EndsWith to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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: 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 d08b6c17680d7ecd12939d2e92fb6ca5cbd69e1e..659f3d0c779f7a8ddd6f0ca95721cb2795ca31f7 100644
--- a/media/filters/source_buffer_stream_unittest.cc
+++ b/media/filters/source_buffer_stream_unittest.cc
@@ -305,7 +305,7 @@ class SourceBufferStreamTest : public testing::Test {
}
// Handle preroll buffers.
- if (EndsWith(timestamps[i], "P", true)) {
+ if (base::EndsWith(timestamps[i], "P", true)) {
ASSERT_TRUE(buffer->is_key_frame());
scoped_refptr<StreamParserBuffer> preroll_buffer;
preroll_buffer.swap(buffer);
@@ -507,34 +507,34 @@ class SourceBufferStreamTest : public testing::Test {
// Remove the "S(" off of the token.
timestamps[i] = timestamps[i].substr(2, timestamps[i].length());
}
- if (splice_frame && EndsWith(timestamps[i], ")", true)) {
+ if (splice_frame && base::EndsWith(timestamps[i], ")", true)) {
splice_frame = false;
last_splice_frame = true;
// Remove the ")" off of the token.
timestamps[i] = timestamps[i].substr(0, timestamps[i].length() - 1);
}
// Handle config changes within the splice frame.
- if (splice_frame && EndsWith(timestamps[i], "C", true)) {
+ if (splice_frame && base::EndsWith(timestamps[i], "C", true)) {
splice_config_id++;
CHECK(splice_config_id < stream_->audio_configs_.size() ||
splice_config_id < stream_->video_configs_.size());
// Remove the "C" off of the token.
timestamps[i] = timestamps[i].substr(0, timestamps[i].length() - 1);
}
- if (EndsWith(timestamps[i], "K", true)) {
+ if (base::EndsWith(timestamps[i], "K", true)) {
is_keyframe = true;
// Remove the "K" off of the token.
timestamps[i] = timestamps[i].substr(0, timestamps[i].length() - 1);
}
// Handle preroll buffers.
- if (EndsWith(timestamps[i], "P", true)) {
+ if (base::EndsWith(timestamps[i], "P", true)) {
is_keyframe = true;
has_preroll = true;
// Remove the "P" off of the token.
timestamps[i] = timestamps[i].substr(0, timestamps[i].length() - 1);
}
- if (EndsWith(timestamps[i], "E", true)) {
+ if (base::EndsWith(timestamps[i], "E", true)) {
is_duration_estimated = true;
// Remove the "E" off of the token.
timestamps[i] = timestamps[i].substr(0, timestamps[i].length() - 1);
« no previous file with comments | « media/filters/frame_processor_unittest.cc ('k') | media/video/capture/mac/video_capture_device_factory_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698