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

Side by Side Diff: content/renderer/media_capture_from_element/html_video_element_capturer_source_unittest.cc

Issue 2660003003: Add MediaError.message (Closed)
Patch Set: Address dalecurtis@'s comment: undef STRINGIFY_STATUS_CASE Created 3 years, 8 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
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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/memory/weak_ptr.h" 6 #include "base/memory/weak_ptr.h"
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "base/threading/thread_task_runner_handle.h" 8 #include "base/threading/thread_task_runner_handle.h"
9 #include "content/renderer/media_capture_from_element/html_video_element_capture r_source.h" 9 #include "content/renderer/media_capture_from_element/html_video_element_capture r_source.h"
10 #include "media/base/limits.h" 10 #include "media/base/limits.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 blink::WebSetSinkIdCallbacks*) override {} 49 blink::WebSetSinkIdCallbacks*) override {}
50 bool HasVideo() const override { return true; } 50 bool HasVideo() const override { return true; }
51 bool HasAudio() const override { return false; } 51 bool HasAudio() const override { return false; }
52 blink::WebSize NaturalSize() const override { return blink::WebSize(16, 10); } 52 blink::WebSize NaturalSize() const override { return blink::WebSize(16, 10); }
53 bool Paused() const override { return false; } 53 bool Paused() const override { return false; }
54 bool Seeking() const override { return false; } 54 bool Seeking() const override { return false; }
55 double Duration() const override { return 0.0; } 55 double Duration() const override { return 0.0; }
56 double CurrentTime() const override { return 0.0; } 56 double CurrentTime() const override { return 0.0; }
57 NetworkState GetNetworkState() const override { return kNetworkStateEmpty; } 57 NetworkState GetNetworkState() const override { return kNetworkStateEmpty; }
58 ReadyState GetReadyState() const override { return kReadyStateHaveNothing; } 58 ReadyState GetReadyState() const override { return kReadyStateHaveNothing; }
59 blink::WebString GetErrorMessage() override { return blink::WebString(); } 59 blink::WebString GetErrorMessage() const override {
60 return blink::WebString();
61 }
62
60 bool DidLoadingProgress() override { return true; } 63 bool DidLoadingProgress() override { return true; }
61 bool HasSingleSecurityOrigin() const override { return true; } 64 bool HasSingleSecurityOrigin() const override { return true; }
62 bool DidPassCORSAccessCheck() const override { return true; } 65 bool DidPassCORSAccessCheck() const override { return true; }
63 double MediaTimeForTimeValue(double timeValue) const override { return 0.0; } 66 double MediaTimeForTimeValue(double timeValue) const override { return 0.0; }
64 unsigned DecodedFrameCount() const override { return 0; } 67 unsigned DecodedFrameCount() const override { return 0; }
65 unsigned DroppedFrameCount() const override { return 0; } 68 unsigned DroppedFrameCount() const override { return 0; }
66 unsigned CorruptedFrameCount() const override { return 0; } 69 unsigned CorruptedFrameCount() const override { return 0; }
67 size_t AudioDecodedByteCount() const override { return 0; } 70 size_t AudioDecodedByteCount() const override { return 0; }
68 size_t VideoDecodedByteCount() const override { return 0; } 71 size_t VideoDecodedByteCount() const override { return 0; }
69 72
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 base::Bind(&HTMLVideoElementCapturerSourceTest::OnRunning, 159 base::Bind(&HTMLVideoElementCapturerSourceTest::OnRunning,
157 base::Unretained(this))); 160 base::Unretained(this)));
158 161
159 run_loop.Run(); 162 run_loop.Run();
160 163
161 html_video_capturer_->StopCapture(); 164 html_video_capturer_->StopCapture();
162 Mock::VerifyAndClearExpectations(this); 165 Mock::VerifyAndClearExpectations(this);
163 } 166 }
164 167
165 } // namespace content 168 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698