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

Unified Diff: media/mojo/services/media_renderer_apptest.cc

Issue 793973004: Fix media::MojoRendererTest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/media_renderer_apptest.cc
diff --git a/media/mojo/services/media_renderer_apptest.cc b/media/mojo/services/media_renderer_apptest.cc
index cc4deeef40fbefe3a5d1945c694a330a48504289..99d60ec5eff2fd471c12e25db8371a2d349266a4 100644
--- a/media/mojo/services/media_renderer_apptest.cc
+++ b/media/mojo/services/media_renderer_apptest.cc
@@ -99,8 +99,7 @@ namespace media {
class MojoRendererTest : public mojo::test::ApplicationTestBase {
public:
- MojoRendererTest()
- : service_provider_(NULL) {}
+ MojoRendererTest() : service_provider_(NULL) {}
~MojoRendererTest() override {}
protected:
@@ -157,10 +156,7 @@ TEST_F(MojoRendererTest, BasicInitialize) {
media::Renderer::PaintCB(), base::Closure(),
base::Bind(&ErrorCallback, &expected_error));
base::MessageLoop::current()->Run();
-
- // We expect an error during initialization because MojoRendererService
- // doesn't initialize any decoders, which causes an error.
- EXPECT_EQ(PIPELINE_ERROR_COULD_NOT_RENDER, expected_error);
+ EXPECT_EQ(PIPELINE_OK, expected_error);
}
} // namespace media
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698