• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4 
5 #include "media/video/mock_video_decode_accelerator.h"
6 
7 namespace media {
8 
9 using ::testing::Invoke;
10 
MockVideoDecodeAccelerator()11 MockVideoDecodeAccelerator::MockVideoDecodeAccelerator() {
12   // Delete |this| when Destroy() is called.
13   ON_CALL(*this, Destroy())
14       .WillByDefault(Invoke(this, &MockVideoDecodeAccelerator::DeleteThis));
15 }
16 
~MockVideoDecodeAccelerator()17 MockVideoDecodeAccelerator::~MockVideoDecodeAccelerator() {}
18 
DeleteThis()19 void MockVideoDecodeAccelerator::DeleteThis() { delete this; }
20 
21 }  // namespace media
22