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

Unified Diff: media/video/mock_video_decode_accelerator.cc

Issue 13890012: Integrate VDA with WebRTC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update the license of rtc_video_decoder.h Created 7 years, 5 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/video/mock_video_decode_accelerator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/mock_video_decode_accelerator.cc
diff --git a/media/video/mock_video_decode_accelerator.cc b/media/video/mock_video_decode_accelerator.cc
new file mode 100644
index 0000000000000000000000000000000000000000..35e8490abb0c6dfca7bb8f3313d0f6839ed6923e
--- /dev/null
+++ b/media/video/mock_video_decode_accelerator.cc
@@ -0,0 +1,21 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "media/video/mock_video_decode_accelerator.h"
+
+namespace media {
+
+using ::testing::Invoke;
+
+MockVideoDecodeAccelerator::MockVideoDecodeAccelerator() {
+ // Delete |this| when Destroy() is called.
+ ON_CALL(*this, Destroy())
+ .WillByDefault(Invoke(this, &MockVideoDecodeAccelerator::DeleteThis));
+}
+
+MockVideoDecodeAccelerator::~MockVideoDecodeAccelerator() {}
+
+void MockVideoDecodeAccelerator::DeleteThis() { delete this; }
+
+} // namespace media
« no previous file with comments | « media/video/mock_video_decode_accelerator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698