| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "media/video/capture/screen/screen_capture_device.h" | 5 #include "media/video/capture/screen/screen_capture_device.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/sequenced_task_runner.h" | |
| 9 #include "base/synchronization/waitable_event.h" | 8 #include "base/synchronization/waitable_event.h" |
| 9 #include "base/task/sequenced_task_runner.h" |
| 10 #include "base/test/test_timeouts.h" | 10 #include "base/test/test_timeouts.h" |
| 11 #include "base/threading/sequenced_worker_pool.h" | 11 #include "base/threading/sequenced_worker_pool.h" |
| 12 #include "base/time.h" | 12 #include "base/time.h" |
| 13 #include "media/video/capture/screen/screen_capture_data.h" | 13 #include "media/video/capture/screen/screen_capture_data.h" |
| 14 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 16 |
| 17 using ::testing::_; | 17 using ::testing::_; |
| 18 using ::testing::DoAll; | 18 using ::testing::DoAll; |
| 19 using ::testing::InvokeWithoutArgs; | 19 using ::testing::InvokeWithoutArgs; |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 EXPECT_EQ(kTestFrameWidth1, caps.width); | 161 EXPECT_EQ(kTestFrameWidth1, caps.width); |
| 162 EXPECT_EQ(kTestFrameHeight1, caps.height); | 162 EXPECT_EQ(kTestFrameHeight1, caps.height); |
| 163 EXPECT_EQ(kFrameRate, caps.frame_rate); | 163 EXPECT_EQ(kFrameRate, caps.frame_rate); |
| 164 EXPECT_EQ(VideoCaptureCapability::kARGB, caps.color); | 164 EXPECT_EQ(VideoCaptureCapability::kARGB, caps.color); |
| 165 EXPECT_FALSE(caps.interlaced); | 165 EXPECT_FALSE(caps.interlaced); |
| 166 | 166 |
| 167 EXPECT_EQ(caps.width * caps.height * 4, frame_size); | 167 EXPECT_EQ(caps.width * caps.height * 4, frame_size); |
| 168 } | 168 } |
| 169 | 169 |
| 170 } // namespace media | 170 } // namespace media |
| OLD | NEW |