Revert "Omit calls to set composing region when pasting image."
[chromium-blink-merge.git] / media / video / mock_video_decode_accelerator.cc
bloba1a9a2b1457ae7541679808c32244f9e95becc0d
1 // Copyright 2013 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.
5 #include "media/video/mock_video_decode_accelerator.h"
7 namespace media {
9 using ::testing::Invoke;
11 MockVideoDecodeAccelerator::MockVideoDecodeAccelerator() {
12 // Delete |this| when Destroy() is called.
13 ON_CALL(*this, Destroy())
14 .WillByDefault(Invoke(this, &MockVideoDecodeAccelerator::DeleteThis));
17 MockVideoDecodeAccelerator::~MockVideoDecodeAccelerator() {}
19 void MockVideoDecodeAccelerator::DeleteThis() { delete this; }
21 } // namespace media