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

Side by Side Diff: content/renderer/media/webmediaplayer_ms_unittest.cc

Issue 1740483004: Rename enums/functions that collide in chromium style in core/html/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-names-5
Patch Set: get-names-6: . Created 4 years, 10 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/media/webmediaplayer_ms.cc ('k') | media/blink/webmediaplayer_impl.h » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include "content/public/renderer/media_stream_renderer_factory.h" 7 #include "content/public/renderer/media_stream_renderer_factory.h"
8 #include "content/renderer/media/webmediaplayer_ms.h" 8 #include "content/renderer/media/webmediaplayer_ms.h"
9 #include "content/renderer/media/webmediaplayer_ms_compositor.h" 9 #include "content/renderer/media/webmediaplayer_ms_compositor.h"
10 #include "content/renderer/render_frame_impl.h" 10 #include "content/renderer/render_frame_impl.h"
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 382
383 MockVideoFrameProvider* const provider = render_factory_->provider(); 383 MockVideoFrameProvider* const provider = render_factory_->provider();
384 EXPECT_TRUE(!!provider); 384 EXPECT_TRUE(!!provider);
385 EXPECT_TRUE(provider->Started()); 385 EXPECT_TRUE(provider->Started());
386 386
387 testing::Mock::VerifyAndClearExpectations(this); 387 testing::Mock::VerifyAndClearExpectations(this);
388 return provider; 388 return provider;
389 } 389 }
390 390
391 void WebMediaPlayerMSTest::networkStateChanged() { 391 void WebMediaPlayerMSTest::networkStateChanged() {
392 blink::WebMediaPlayer::NetworkState state = player_.networkState(); 392 blink::WebMediaPlayer::NetworkState state = player_.getNetworkState();
393 DoNetworkStateChanged(state); 393 DoNetworkStateChanged(state);
394 if (state == blink::WebMediaPlayer::NetworkState::NetworkStateFormatError || 394 if (state == blink::WebMediaPlayer::NetworkState::NetworkStateFormatError ||
395 state == blink::WebMediaPlayer::NetworkState::NetworkStateDecodeError || 395 state == blink::WebMediaPlayer::NetworkState::NetworkStateDecodeError ||
396 state == blink::WebMediaPlayer::NetworkState::NetworkStateNetworkError) { 396 state == blink::WebMediaPlayer::NetworkState::NetworkStateNetworkError) {
397 message_loop_controller_.GetPipelineStatusCB().Run( 397 message_loop_controller_.GetPipelineStatusCB().Run(
398 media::PipelineStatus::PIPELINE_ERROR_NETWORK); 398 media::PipelineStatus::PIPELINE_ERROR_NETWORK);
399 } 399 }
400 } 400 }
401 401
402 void WebMediaPlayerMSTest::readyStateChanged() { 402 void WebMediaPlayerMSTest::readyStateChanged() {
403 blink::WebMediaPlayer::ReadyState state = player_.readyState(); 403 blink::WebMediaPlayer::ReadyState state = player_.getReadyState();
404 DoReadyStateChanged(state); 404 DoReadyStateChanged(state);
405 if (state == blink::WebMediaPlayer::ReadyState::ReadyStateHaveEnoughData) 405 if (state == blink::WebMediaPlayer::ReadyState::ReadyStateHaveEnoughData)
406 player_.play(); 406 player_.play();
407 } 407 }
408 408
409 void WebMediaPlayerMSTest::setWebLayer(blink::WebLayer* layer) { 409 void WebMediaPlayerMSTest::setWebLayer(blink::WebLayer* layer) {
410 if (layer) 410 if (layer)
411 compositor_->SetVideoFrameProviderClient(this); 411 compositor_->SetVideoFrameProviderClient(this);
412 DoSetWebLayer(!!layer); 412 DoSetWebLayer(!!layer);
413 } 413 }
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 media::PipelineStatus::PIPELINE_OK); 633 media::PipelineStatus::PIPELINE_OK);
634 after_frame = compositor_->GetCurrentFrame(); 634 after_frame = compositor_->GetCurrentFrame();
635 EXPECT_NE(prev_frame->timestamp(), after_frame->timestamp()); 635 EXPECT_NE(prev_frame->timestamp(), after_frame->timestamp());
636 testing::Mock::VerifyAndClearExpectations(this); 636 testing::Mock::VerifyAndClearExpectations(this);
637 637
638 EXPECT_CALL(*this, DoSetWebLayer(false)); 638 EXPECT_CALL(*this, DoSetWebLayer(false));
639 EXPECT_CALL(*this, DoStopRendering()); 639 EXPECT_CALL(*this, DoStopRendering());
640 } 640 }
641 641
642 } // namespace content 642 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/webmediaplayer_ms.cc ('k') | media/blink/webmediaplayer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698