diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-08 20:44:00 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-08 20:44:00 +0000 |
commit | 28dc42112899ad4c118cb55ddb3af6437471243f (patch) | |
tree | 7a536b151c9e2137c9249e85b01f9e649216367c /media/video | |
parent | b2c71fa0ab3d6a1ef3a8d47b4a827d3539208da6 (diff) | |
download | chromium_src-28dc42112899ad4c118cb55ddb3af6437471243f.zip chromium_src-28dc42112899ad4c118cb55ddb3af6437471243f.tar.gz chromium_src-28dc42112899ad4c118cb55ddb3af6437471243f.tar.bz2 |
Another big out-of-lining of test code. Hits a lot of gmock objects
BUG=none
TEST=compiles
Review URL: http://codereview.chromium.org/6413036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74168 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/video')
-rw-r--r-- | media/video/video_mock_objects.cc | 18 | ||||
-rw-r--r-- | media/video/video_mock_objects.h (renamed from media/video/mock_objects.h) | 8 |
2 files changed, 22 insertions, 4 deletions
diff --git a/media/video/video_mock_objects.cc b/media/video/video_mock_objects.cc new file mode 100644 index 0000000..5873b59 --- /dev/null +++ b/media/video/video_mock_objects.cc @@ -0,0 +1,18 @@ +// Copyright (c) 2010 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/video_mock_objects.h" + +namespace media { + +MockVideoDecodeEngine::MockVideoDecodeEngine() {} + +MockVideoDecodeEngine::~MockVideoDecodeEngine() {} + +MockVideoDecodeContext::MockVideoDecodeContext() {} + +MockVideoDecodeContext::~MockVideoDecodeContext() {} + + +} // namespace media diff --git a/media/video/mock_objects.h b/media/video/video_mock_objects.h index c0f3dd9..1a9592c 100644 --- a/media/video/mock_objects.h +++ b/media/video/video_mock_objects.h @@ -13,8 +13,8 @@ namespace media { class MockVideoDecodeEngine : public VideoDecodeEngine { public: - MockVideoDecodeEngine() {} - virtual ~MockVideoDecodeEngine() {} + MockVideoDecodeEngine(); + virtual ~MockVideoDecodeEngine(); MOCK_METHOD4(Initialize, void(MessageLoop* message_loop, EventHandler* event_handler, @@ -32,8 +32,8 @@ class MockVideoDecodeEngine : public VideoDecodeEngine { class MockVideoDecodeContext : public VideoDecodeContext { public: - MockVideoDecodeContext() {} - virtual ~MockVideoDecodeContext() {} + MockVideoDecodeContext(); + virtual ~MockVideoDecodeContext(); MOCK_METHOD0(GetDevice, void*()); MOCK_METHOD6(AllocateVideoFrames, void( |