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/threading/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" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" | 12 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" |
13 #include "third_party/WebKit/public/platform/WebString.h" | 13 #include "third_party/WebKit/public/platform/WebString.h" |
14 | 14 |
15 using ::testing::_; | 15 using ::testing::_; |
16 using ::testing::InSequence; | 16 using ::testing::InSequence; |
17 using ::testing::Mock; | 17 using ::testing::Mock; |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 base::Bind(&HTMLVideoElementCapturerSourceTest::OnRunning, | 162 base::Bind(&HTMLVideoElementCapturerSourceTest::OnRunning, |
163 base::Unretained(this))); | 163 base::Unretained(this))); |
164 | 164 |
165 run_loop.Run(); | 165 run_loop.Run(); |
166 | 166 |
167 html_video_capturer_->StopCapture(); | 167 html_video_capturer_->StopCapture(); |
168 Mock::VerifyAndClearExpectations(this); | 168 Mock::VerifyAndClearExpectations(this); |
169 } | 169 } |
170 | 170 |
171 } // namespace content | 171 } // namespace content |
OLD | NEW |