Index: media/base/pipeline_impl_unittest.cc |
=================================================================== |
--- media/base/pipeline_impl_unittest.cc (revision 91577) |
+++ media/base/pipeline_impl_unittest.cc (working copy) |
@@ -34,7 +34,7 @@ |
static const int kBufferedBytes = 1024; |
// Test url for raw video pipeline. |
-static const std::string kUrlMedia = "media://raw_video_stream"; |
+static const char kUrlRawVideo[] = "://raw_video_stream"; |
// Used for setting expectations on pipeline callbacks. Using a StrictMock |
// also lets us test for missing callbacks. |
@@ -206,8 +206,8 @@ |
EXPECT_CALL(callbacks_, OnStart(start_status)); |
bool run_build = true; |
- if (url.compare(kUrlMedia) == 0) |
- run_build = false; |
+ if (url.find(kRawMediaScheme) == 0) |
+ run_build = false; |
pipeline_->Start(mocks_->filter_collection(true, |
true, |
@@ -430,7 +430,8 @@ |
InitializeVideoDecoder(NULL); |
InitializeVideoRenderer(); |
- InitializePipeline(PIPELINE_OK, PIPELINE_OK, kUrlMedia); |
+ InitializePipeline(PIPELINE_OK, PIPELINE_OK, |
+ std::string(kRawMediaScheme).append(kUrlRawVideo)); |
EXPECT_TRUE(pipeline_->IsInitialized()); |
EXPECT_FALSE(pipeline_->HasAudio()); |
EXPECT_TRUE(pipeline_->HasVideo()); |