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

Unified Diff: media/cast/sender/external_video_encoder_unittest.cc

Issue 555563003: Cast: Flow hw encoder initialization error to extensions API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed compile Created 6 years, 3 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 | « media/cast/sender/external_video_encoder.cc ('k') | media/cast/sender/video_sender.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/sender/external_video_encoder_unittest.cc
diff --git a/media/cast/sender/external_video_encoder_unittest.cc b/media/cast/sender/external_video_encoder_unittest.cc
index 064c9e0467beea128d2859ec23a0e55648cc33ff..2f6fa9e605b04600df092641ce47b233881156b8 100644
--- a/media/cast/sender/external_video_encoder_unittest.cc
+++ b/media/cast/sender/external_video_encoder_unittest.cc
@@ -23,6 +23,8 @@ using testing::_;
namespace {
+void IgnoreInitializationStatus(CastInitializationStatus status) {}
+
class VEAFactory {
public:
VEAFactory(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
@@ -134,6 +136,7 @@ class ExternalVideoEncoderTest : public ::testing::Test {
video_encoder_.reset(new ExternalVideoEncoder(
cast_environment_,
video_config_,
+ base::Bind(&IgnoreInitializationStatus),
base::Bind(&VEAFactory::CreateVideoEncodeAccelerator,
base::Unretained(&vea_factory)),
base::Bind(&CreateSharedMemory)));
@@ -229,6 +232,7 @@ TEST(ExternalVideoEncoderEarlyDestroyTest, DestroyBeforeVEACreatedCallback) {
scoped_ptr<ExternalVideoEncoder> video_encoder(new ExternalVideoEncoder(
cast_environment,
video_config,
+ base::Bind(&IgnoreInitializationStatus),
base::Bind(&VEAFactory::CreateVideoEncodeAccelerator,
base::Unretained(&vea_factory)),
base::Bind(&CreateSharedMemory)));
« no previous file with comments | « media/cast/sender/external_video_encoder.cc ('k') | media/cast/sender/video_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698