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

Side by Side Diff: media/video/mock_video_encode_accelerator.cc

Issue 2182183007: Handle scaling frames in RTCVideoEncoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add unittests. Created 4 years, 4 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
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "media/video/mock_video_encode_accelerator.h"
6
7 namespace media {
8
9 using ::testing::Invoke;
10
11 MockVideoEncodeAccelerator::MockVideoEncodeAccelerator() {
12 // Delete |this| when Destroy() is called.
13 ON_CALL(*this, Destroy())
14 .WillByDefault(Invoke(this, &MockVideoEncodeAccelerator::DeleteThis));
15 }
16
17 MockVideoEncodeAccelerator::~MockVideoEncodeAccelerator() {}
18
19 void MockVideoEncodeAccelerator::DeleteThis() {
20 delete this;
21 }
22
23 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698