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

Unified Diff: media/capture/video/fake_video_capture_device_unittest.cc

Issue 1418263006: Extend VideoCaptureDevice::Client::OnError() to have a tracked_objects::Location param. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: media/capture/video/fake_video_capture_device_unittest.cc
diff --git a/media/capture/video/fake_video_capture_device_unittest.cc b/media/capture/video/fake_video_capture_device_unittest.cc
index 05ac492b4c93e751dc2d40b26e6a167d6b310c7b..e595340069de2d4e73203a16c0252213d1fcdb7c 100644
--- a/media/capture/video/fake_video_capture_device_unittest.cc
+++ b/media/capture/video/fake_video_capture_device_unittest.cc
@@ -54,7 +54,9 @@ class MockBuffer : public VideoCaptureDevice::Client::Buffer {
class MockClient : public VideoCaptureDevice::Client {
public:
- MOCK_METHOD1(OnError, void(const std::string& reason));
+ MOCK_METHOD2(OnError,
+ void(const tracked_objects::Location& from_here,
+ const std::string& reason));
explicit MockClient(base::Callback<void(const VideoCaptureFormat&)> frame_cb)
: frame_cb_(frame_cb) {}
@@ -141,7 +143,7 @@ class FakeVideoCaptureDeviceBase : public ::testing::Test {
device_enumeration_listener_ = new DeviceEnumerationListener();
}
- void SetUp() override { EXPECT_CALL(*client_, OnError(_)).Times(0); }
+ void SetUp() override { EXPECT_CALL(*client_, OnError(_, _)).Times(0); }
void OnFrameCaptured(const VideoCaptureFormat& format) {
last_format_ = format;

Powered by Google App Engine
This is Rietveld 408576698