Disable flaky SelectFileDialogExtensionBrowserTest tests
[chromium-blink-merge.git] / cc / test / fake_video_frame_provider.cc
blob3f4b40b7612a9e1c3fd38a2274c7876ab553a563
1 // Copyright 2012 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 "cc/test/fake_video_frame_provider.h"
7 namespace cc {
9 FakeVideoFrameProvider::FakeVideoFrameProvider()
10 : frame_(NULL), client_(NULL) {}
12 FakeVideoFrameProvider::~FakeVideoFrameProvider() {
13 if (client_)
14 client_->StopUsingProvider();
17 bool FakeVideoFrameProvider::UpdateCurrentFrame(base::TimeTicks deadline_min,
18 base::TimeTicks deadline_max) {
19 return false;
22 void FakeVideoFrameProvider::SetVideoFrameProviderClient(Client* client) {
23 client_ = client;
26 scoped_refptr<media::VideoFrame> FakeVideoFrameProvider::GetCurrentFrame() {
27 return frame_;
30 } // namespace cc