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

Unified Diff: chromecast/media/cma/backend/audio_video_pipeline_device_unittest.cc

Issue 1137183003: Initialize Cast Media for cast_media_unittests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment update on CastMediaShlib Created 5 years, 7 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
« no previous file with comments | « no previous file | chromecast/public/cast_media_shlib.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/cma/backend/audio_video_pipeline_device_unittest.cc
diff --git a/chromecast/media/cma/backend/audio_video_pipeline_device_unittest.cc b/chromecast/media/cma/backend/audio_video_pipeline_device_unittest.cc
index 7374261efa187cc20fb32cd3732acf044233ae7f..972d20af67920745348ff2da3649064c779adfaf 100644
--- a/chromecast/media/cma/backend/audio_video_pipeline_device_unittest.cc
+++ b/chromecast/media/cma/backend/audio_video_pipeline_device_unittest.cc
@@ -6,6 +6,7 @@
#include "base/basictypes.h"
#include "base/bind.h"
+#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/files/memory_mapped_file.h"
#include "base/logging.h"
@@ -28,6 +29,7 @@
#include "chromecast/media/cma/base/decoder_config_adapter.h"
#include "chromecast/media/cma/test/frame_segmenter_for_test.h"
#include "chromecast/media/cma/test/media_component_device_feeder_for_test.h"
+#include "chromecast/public/cast_media_shlib.h"
#include "chromecast/public/media/decoder_config.h"
#include "media/base/audio_decoder_config.h"
#include "media/base/buffers.h"
@@ -71,6 +73,15 @@ class AudioVideoPipelineDeviceTest : public testing::Test {
AudioVideoPipelineDeviceTest();
~AudioVideoPipelineDeviceTest() override;
+ void SetUp() override {
+ CastMediaShlib::Initialize(
+ base::CommandLine::ForCurrentProcess()->argv());
+ }
+
+ void TearDown() override {
+ CastMediaShlib::Finalize();
+ }
+
void ConfigureForFile(std::string filename);
void ConfigureForAudioOnly(std::string filename);
void ConfigureForVideoOnly(std::string filename, bool raw_h264);
« no previous file with comments | « no previous file | chromecast/public/cast_media_shlib.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698