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

Side by Side Diff: media/test/pipeline_integration_test.cc

Issue 1179953006: [Merge to M44] Chromium changes to statically link ffmpeg. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2403
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 unified diff | Download patch
« no previous file with comments | « media/mojo/services/renderer_config_default.cc ('k') | remoting/base/run_all_unittests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/bind.h" 5 #include "base/bind.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 }; 624 };
625 625
626 #if defined(MOJO_RENDERER) 626 #if defined(MOJO_RENDERER)
627 class PipelineIntegrationTestHost : public mojo::test::ApplicationTestBase, 627 class PipelineIntegrationTestHost : public mojo::test::ApplicationTestBase,
628 public PipelineIntegrationTestBase { 628 public PipelineIntegrationTestBase {
629 public: 629 public:
630 bool ShouldCreateDefaultRunLoop() override { return false; } 630 bool ShouldCreateDefaultRunLoop() override { return false; }
631 631
632 void SetUp() override { 632 void SetUp() override {
633 ApplicationTestBase::SetUp(); 633 ApplicationTestBase::SetUp();
634 if (!IsMediaLibraryInitialized()) 634 InitializeMediaLibrary();
635 InitializeMediaLibraryForTesting();
636 } 635 }
637 636
638 protected: 637 protected:
639 scoped_ptr<Renderer> CreateRenderer() override { 638 scoped_ptr<Renderer> CreateRenderer() override {
640 mojo::ServiceProvider* service_provider = 639 mojo::ServiceProvider* service_provider =
641 application_impl() 640 application_impl()
642 ->ConnectToApplication("mojo://media") 641 ->ConnectToApplication("mojo://media")
643 ->GetServiceProvider(); 642 ->GetServiceProvider();
644 643
645 mojo::MediaRendererPtr mojo_media_renderer; 644 mojo::MediaRendererPtr mojo_media_renderer;
(...skipping 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after
1738 1737
1739 TEST_F(PipelineIntegrationTest, BasicPlaybackPositiveStartTime) { 1738 TEST_F(PipelineIntegrationTest, BasicPlaybackPositiveStartTime) {
1740 ASSERT_EQ(PIPELINE_OK, Start("nonzero-start-time.webm")); 1739 ASSERT_EQ(PIPELINE_OK, Start("nonzero-start-time.webm"));
1741 Play(); 1740 Play();
1742 ASSERT_TRUE(WaitUntilOnEnded()); 1741 ASSERT_TRUE(WaitUntilOnEnded());
1743 ASSERT_EQ(base::TimeDelta::FromMicroseconds(396000), 1742 ASSERT_EQ(base::TimeDelta::FromMicroseconds(396000),
1744 demuxer_->GetStartTime()); 1743 demuxer_->GetStartTime());
1745 } 1744 }
1746 1745
1747 } // namespace media 1746 } // namespace media
OLDNEW
« no previous file with comments | « media/mojo/services/renderer_config_default.cc ('k') | remoting/base/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698