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/message_loop/message_loop.h" | 5 #include "base/message_loop/message_loop.h" |
6 #include "base/run_loop.h" | 6 #include "base/run_loop.h" |
7 #include "base/threading/thread_task_runner_handle.h" | 7 #include "base/threading/thread_task_runner_handle.h" |
8 #include "content/child/child_process.h" | 8 #include "content/child/child_process.h" |
9 #include "content/renderer/media/canvas_capture_handler.h" | 9 #include "content/renderer/media/canvas_capture_handler.h" |
10 #include "content/renderer/media/media_stream_video_capturer_source.h" | 10 #include "content/renderer/media/media_stream_video_capturer_source.h" |
11 #include "media/base/limits.h" | 11 #include "media/base/limits.h" |
12 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" | 14 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" |
15 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" | 15 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" |
16 #include "third_party/WebKit/public/platform/WebSize.h" | 16 #include "third_party/WebKit/public/platform/WebSize.h" |
17 #include "third_party/WebKit/public/web/WebHeap.h" | 17 #include "third_party/WebKit/public/web/WebHeap.h" |
| 18 #include "third_party/skia/include/core/SkImage.h" |
| 19 #include "third_party/skia/include/core/SkRefCnt.h" |
18 | 20 |
19 using ::testing::_; | 21 using ::testing::_; |
20 using ::testing::InSequence; | 22 using ::testing::InSequence; |
21 using ::testing::Mock; | 23 using ::testing::Mock; |
22 using ::testing::SaveArg; | 24 using ::testing::SaveArg; |
23 using ::testing::Test; | 25 using ::testing::Test; |
24 using ::testing::TestWithParam; | 26 using ::testing::TestWithParam; |
25 | 27 |
26 namespace content { | 28 namespace content { |
27 | 29 |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 INSTANTIATE_TEST_CASE_P( | 248 INSTANTIATE_TEST_CASE_P( |
247 , | 249 , |
248 CanvasCaptureHandlerTest, | 250 CanvasCaptureHandlerTest, |
249 ::testing::Combine(::testing::Bool(), | 251 ::testing::Combine(::testing::Bool(), |
250 ::testing::Values(kTestCanvasCaptureFrameEvenSize, | 252 ::testing::Values(kTestCanvasCaptureFrameEvenSize, |
251 kTestCanvasCaptureFrameOddSize), | 253 kTestCanvasCaptureFrameOddSize), |
252 ::testing::Values(kTestCanvasCaptureFrameEvenSize, | 254 ::testing::Values(kTestCanvasCaptureFrameEvenSize, |
253 kTestCanvasCaptureFrameOddSize))); | 255 kTestCanvasCaptureFrameOddSize))); |
254 | 256 |
255 } // namespace content | 257 } // namespace content |
OLD | NEW |