OLD | NEW |
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/memory/weak_ptr.h" | 5 #include "base/memory/weak_ptr.h" |
6 #include "base/run_loop.h" | 6 #include "base/run_loop.h" |
7 #include "base/thread_task_runner_handle.h" | 7 #include "base/thread_task_runner_handle.h" |
8 #include "content/renderer/media/html_video_element_capturer_source.h" | 8 #include "content/renderer/media/html_video_element_capturer_source.h" |
9 #include "media/base/limits.h" | 9 #include "media/base/limits.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 blink::WebSetSinkIdCallbacks*) override {} | 47 blink::WebSetSinkIdCallbacks*) override {} |
48 bool hasVideo() const override { return true; } | 48 bool hasVideo() const override { return true; } |
49 bool hasAudio() const override { return false; } | 49 bool hasAudio() const override { return false; } |
50 blink::WebSize naturalSize() const override { | 50 blink::WebSize naturalSize() const override { |
51 return blink::WebSize(16, 10); | 51 return blink::WebSize(16, 10); |
52 } | 52 } |
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 networkState() const override { | 57 NetworkState getNetworkState() const override { |
58 return NetworkStateEmpty; | 58 return NetworkStateEmpty; |
59 } | 59 } |
60 ReadyState readyState() const override { | 60 ReadyState getReadyState() const override { |
61 return ReadyStateHaveNothing; | 61 return ReadyStateHaveNothing; |
62 } | 62 } |
63 bool didLoadingProgress() override { return true; } | 63 bool didLoadingProgress() override { return true; } |
64 bool hasSingleSecurityOrigin() const override { return true; } | 64 bool hasSingleSecurityOrigin() const override { return true; } |
65 bool didPassCORSAccessCheck() const override { return true; } | 65 bool didPassCORSAccessCheck() const override { return true; } |
66 double mediaTimeForTimeValue(double timeValue) const override { return 0.0; } | 66 double mediaTimeForTimeValue(double timeValue) const override { return 0.0; } |
67 unsigned decodedFrameCount() const override { return 0; } | 67 unsigned decodedFrameCount() const override { return 0; } |
68 unsigned droppedFrameCount() const override { return 0; } | 68 unsigned droppedFrameCount() const override { return 0; } |
69 unsigned corruptedFrameCount() const override { return 0; } | 69 unsigned corruptedFrameCount() const override { return 0; } |
70 unsigned audioDecodedByteCount() const override { return 0; } | 70 unsigned audioDecodedByteCount() const override { return 0; } |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 base::Bind(&HTMLVideoElementCapturerSourceTest::OnRunning, | 160 base::Bind(&HTMLVideoElementCapturerSourceTest::OnRunning, |
161 base::Unretained(this))); | 161 base::Unretained(this))); |
162 | 162 |
163 run_loop.Run(); | 163 run_loop.Run(); |
164 | 164 |
165 html_video_capturer_->StopCapture(); | 165 html_video_capturer_->StopCapture(); |
166 Mock::VerifyAndClearExpectations(this); | 166 Mock::VerifyAndClearExpectations(this); |
167 } | 167 } |
168 | 168 |
169 } // namespace content | 169 } // namespace content |
OLD | NEW |