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"
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; }