Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Side by Side Diff: media/blink/webmediaplayer_impl_unittest.cc

Issue 1784173005: Request a GpuVideoAcceleratorFactories when constructing decoders. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update test_mojo_media_client.cc Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | media/mojo/services/test_mojo_media_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdint.h> 5 #include <stdint.h>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 &web_frame_client_)), 91 &web_frame_client_)),
92 media_log_(new MediaLog()), 92 media_log_(new MediaLog()),
93 audio_parameters_(TestAudioParameters::Normal()), 93 audio_parameters_(TestAudioParameters::Normal()),
94 audio_hardware_config_(audio_parameters_, audio_parameters_) { 94 audio_hardware_config_(audio_parameters_, audio_parameters_) {
95 web_view_->setMainFrame(web_local_frame_); 95 web_view_->setMainFrame(web_local_frame_);
96 media_thread_.StartAndWaitForTesting(); 96 media_thread_.StartAndWaitForTesting();
97 97
98 wmpi_.reset(new WebMediaPlayerImpl( 98 wmpi_.reset(new WebMediaPlayerImpl(
99 web_local_frame_, &client_, nullptr, 99 web_local_frame_, &client_, nullptr,
100 base::WeakPtr<WebMediaPlayerDelegate>(), 100 base::WeakPtr<WebMediaPlayerDelegate>(),
101 make_scoped_ptr(new DefaultRendererFactory(media_log_, nullptr, nullptr, 101 make_scoped_ptr(new DefaultRendererFactory(
102 audio_hardware_config_)), 102 media_log_, nullptr, DefaultRendererFactory::GetGpuFactoriesCB(),
103 audio_hardware_config_)),
103 url_index_, 104 url_index_,
104 WebMediaPlayerParams( 105 WebMediaPlayerParams(
105 WebMediaPlayerParams::DeferLoadCB(), 106 WebMediaPlayerParams::DeferLoadCB(),
106 scoped_refptr<RestartableAudioRendererSink>(), media_log_, 107 scoped_refptr<RestartableAudioRendererSink>(), media_log_,
107 media_thread_.task_runner(), message_loop_.task_runner(), 108 media_thread_.task_runner(), message_loop_.task_runner(),
108 message_loop_.task_runner(), WebMediaPlayerParams::Context3DCB(), 109 message_loop_.task_runner(), WebMediaPlayerParams::Context3DCB(),
109 base::Bind(&OnAdjustAllocatedMemory), nullptr, nullptr, nullptr))); 110 base::Bind(&OnAdjustAllocatedMemory), nullptr, nullptr, nullptr)));
110 } 111 }
111 112
112 ~WebMediaPlayerImplTest() override { 113 ~WebMediaPlayerImplTest() override {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // The WebMediaPlayerImpl instance under test. 150 // The WebMediaPlayerImpl instance under test.
150 scoped_ptr<WebMediaPlayerImpl> wmpi_; 151 scoped_ptr<WebMediaPlayerImpl> wmpi_;
151 152
152 private: 153 private:
153 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImplTest); 154 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImplTest);
154 }; 155 };
155 156
156 TEST_F(WebMediaPlayerImplTest, ConstructAndDestroy) {} 157 TEST_F(WebMediaPlayerImplTest, ConstructAndDestroy) {}
157 158
158 } // namespace media 159 } // namespace media
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | media/mojo/services/test_mojo_media_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698