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

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

Issue 17508005: Minor cleanup to remove the static thread-safe methods on BrowserMainLoop. Initially I thought this… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 6 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_unittest.cc
===================================================================
--- content/browser/renderer_host/media/video_capture_host_unittest.cc (revision 207505)
+++ content/browser/renderer_host/media/video_capture_host_unittest.cc (working copy)
@@ -72,10 +72,9 @@
class MockVideoCaptureHost : public VideoCaptureHost {
public:
MockVideoCaptureHost(MediaStreamManager* manager)
- : VideoCaptureHost(),
+ : VideoCaptureHost(manager),
return_buffers_(false),
- dump_video_(false),
- manager_(manager) {}
+ dump_video_(false) {}
// A list of mock methods.
MOCK_METHOD4(OnNewBufferCreated,
@@ -143,10 +142,6 @@
return true;
}
- virtual VideoCaptureManager* GetVideoCaptureManager() OVERRIDE {
- return manager_->video_capture_manager();
- }
-
// These handler methods do minimal things and delegate to the mock methods.
void OnNewBufferCreatedDispatch(int device_id,
base::SharedMemoryHandle handle,
@@ -187,7 +182,6 @@
bool return_buffers_;
bool dump_video_;
DumpVideo dumper_;
- MediaStreamManager* manager_;
};
ACTION_P(ExitMessageLoop, message_loop) {

Powered by Google App Engine
This is Rietveld 408576698