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

Unified Diff: content/browser/renderer_host/media/video_capture_host.cc

Issue 2403533002: VideoCaptureHostTest: simplify testing and remove unused code (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/media/video_capture_host.cc
diff --git a/content/browser/renderer_host/media/video_capture_host.cc b/content/browser/renderer_host/media/video_capture_host.cc
index 6863275a69b70be2c2b23638f76e80debc345d94..d070620ac3b8b89ab2630e2d1b1116571eedf0fe 100644
--- a/content/browser/renderer_host/media/video_capture_host.cc
+++ b/content/browser/renderer_host/media/video_capture_host.cc
@@ -108,7 +108,7 @@ void VideoCaptureHost::OnBufferReady(
}
void VideoCaptureHost::OnEnded(VideoCaptureControllerID controller_id) {
- DVLOG(1) << "VideoCaptureHost::OnEnded";
+ DVLOG(1) << __func__;
DCHECK_CURRENTLY_ON(BrowserThread::IO);
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
@@ -116,7 +116,7 @@ void VideoCaptureHost::OnEnded(VideoCaptureControllerID controller_id) {
}
void VideoCaptureHost::DoError(VideoCaptureControllerID controller_id) {
- DVLOG(1) << "VideoCaptureHost::DoError";
+ DVLOG(1) << __func__;
DCHECK_CURRENTLY_ON(BrowserThread::IO);
if (controllers_.find(controller_id) == controllers_.end())
return;
@@ -127,7 +127,7 @@ void VideoCaptureHost::DoError(VideoCaptureControllerID controller_id) {
}
void VideoCaptureHost::DoEnded(VideoCaptureControllerID controller_id) {
- DVLOG(1) << "VideoCaptureHost::DoEnded";
+ DVLOG(1) << __func__;
DCHECK_CURRENTLY_ON(BrowserThread::IO);
if (controllers_.find(controller_id) == controllers_.end())
return;
@@ -137,8 +137,6 @@ void VideoCaptureHost::DoEnded(VideoCaptureControllerID controller_id) {
DeleteVideoCaptureController(controller_id, false);
}
-///////////////////////////////////////////////////////////////////////////////
-// IPC Messages handler.
bool VideoCaptureHost::OnMessageReceived(const IPC::Message& message) {
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(VideoCaptureHost, message)

Powered by Google App Engine
This is Rietveld 408576698